@Test public void shouldSerialiseWithHistoricValues() throws Exception { assertNotNull("historicSerialisationPairs should not be null.", historicSerialisationPairs); assertNotEquals("historicSerialisationPairs should not be empty.", 0, historicSerialisationPairs.length); for (final Pair<INPUT, OUTPUT> pair : historicSerialisationPairs) { assertNotNull("historicSerialisationPairs first value should not be null", pair.getFirst()); serialiseFirst(pair); assertNotNull("historicSerialisationPairs second value should not be null", pair.getSecond()); deserialiseSecond(pair); } }