@Test(expected = DataTypeLengthMismatchException.class)
public void testDecodeBooleanLengthMismatch() throws UtilityException, DataTypeLengthMismatchException, UnknownHostException, MissingAbstractDataTypeException {

    byte[] data = IpfixUtilities.hexStringToByteArray("01");
    int length = 2;
    IpfixDataRecordDecodeMethod method = new DecodeBoolean();
    String value = method.decodeDataRecord(data, length);
    assertEquals("True", value);
}