SupplementalDataEntryParser extends Parser<SupplementalDataEntry> { @Override public SupplementalDataEntry parse() { LOGGER.debug("Parsing SupplementalDataEntry"); SupplementalDataEntry entry = new SupplementalDataEntry(); parseSupplementalDataEntryType(entry); parseSupplementalDataEntryLength(entry); parseSupplementalDataEntry(entry); return entry; } SupplementalDataEntryParser(int startposition, byte[] array); @Override SupplementalDataEntry parse();  }
@Test public void testParse() { SupplementalDataEntryParser parser = new SupplementalDataEntryParser(0, supplementalDataTestEntry); SupplementalDataEntry entry = parser.parse(); assertTrue(supplementalDataEntryType == entry.getSupplementalDataEntryType().getValue()); assertTrue(supplementalDataEntryLength == entry.getSupplementalDataEntryLength().getValue()); assertArrayEquals(supplementalDataEntry, entry.getSupplementalDataEntry().getValue()); }