ServerNamePairPreparator extends Preparator<ServerNamePair> { @Override public void prepare() { LOGGER.debug("Preparing ServerNamePairMessage"); prepareServerName(pair); prepareServerNameType(pair); prepareServerNameLength(pair); } ServerNamePairPreparator(Chooser chooser, ServerNamePair pair); @Override void prepare();  }
@Test public void testPrepare() { preparator.prepare(); assertArrayEquals(serverName, pair.getServerName().getValue()); assertEquals(serverNameType, (long) pair.getServerNameType().getValue()); assertEquals(serverNameLength, (long) pair.getServerNameLength().getValue()); }