PSKBinderParser extends Parser<PSKBinder> { @Override public PSKBinder parse() { LOGGER.debug("Parsing PSKBinder"); PSKBinder pskBinder = new PSKBinder(); parseBinderLength(pskBinder); parseBinderEntry(pskBinder); return pskBinder; } PSKBinderParser(int startposition, byte[] array); @Override PSKBinder parse();  }
@Test public void testParseExtensionMessageContent() { pskBinder = parser.parse(); assertEquals(pskBinderEntryLength, (long) pskBinder.getBinderEntryLength().getValue()); assertArrayEquals(pskBinderEntry, pskBinder.getBinderEntry().getValue()); }