### Question:
IpfixOptionTemplateRecord extends AbstractTemplateRecord implements IpfixDecodable, Serializable { public IpfixOptionTemplateRecordHeader getHeader() { return m_header; } IpfixOptionTemplateRecord(byte[] data); IpfixOptionTemplateRecordHeader getHeader(); void setHeader(IpfixOptionTemplateRecordHeader header); void decodeToIpfixEntity(byte[] data); @Override String toString();  }### Answer:
@Test public void testDecodeOptionTemplateRecord() throws NotEnoughBytesException { byte[] data = IpfixUtilities.hexStringToByteArray("010300030001008D000400290002802A000400000E91"); IpfixOptionTemplateRecord otr = new IpfixOptionTemplateRecord(data); assertEquals(259, otr.getHeader().getId()); assertEquals(1, otr.getHeader().getScopeFieldCount()); assertEquals(3, otr.getHeader().getFieldCount()); IpfixFieldSpecifier fsScope = otr.getFieldSpecifiers().get(0); assertFalse(fsScope.isEnterprise()); assertEquals(141, fsScope.getInformationElementId()); assertEquals(4, fsScope.getFieldLength()); IpfixFieldSpecifier fsNotEnterprise = otr.getFieldSpecifiers().get(1); assertFalse(fsNotEnterprise.isEnterprise()); assertEquals(41, fsNotEnterprise.getInformationElementId()); assertEquals(2, fsNotEnterprise.getFieldLength()); IpfixFieldSpecifier fsEnterprise = otr.getFieldSpecifiers().get(2); assertTrue(fsEnterprise.isEnterprise()); assertEquals(42, fsEnterprise.getInformationElementId()); assertEquals(4, fsEnterprise.getFieldLength()); assertEquals(3729, fsEnterprise.getEnterpriseNumber()); }