@Test
public void dataLengthTest() {

	byte[] message = new byte[] { (byte) 0xbc, 0x0d, 0, 0, 9, 1, 3, 0, (byte) 0x80, (byte) 0x12, (byte) 0x13 };
	assertTrue(
			"KnxEncoder.decode(new byte[] {(byte) 0xbc, 0x0d, 0, 0, 9, 1, 3, 0, (byte) 0x80, (byte) 0x12, (byte) 0x13 }).telegramDatalengthIsCorrect is "
					+ KnxEncoder.decode(message).telegramDatalengthIsCorrect + "; but should be true",
			KnxEncoder.decode(message).telegramDatalengthIsCorrect == true);
	byte[] message2 = new byte[] { (byte) 0xbc, 0x0d, 0, 0, 9, 1, 4, 0, (byte) 0x80, (byte) 0x12, (byte) 0x13 };
	assertTrue(
			"KnxEncoder.decode(new byte[] {(byte) 0xbc, 0x0d, 0, 0, 9, 1, 4, 0, (byte) 0x80, (byte) 0x12, (byte) 0x13 }) is "
					+ KnxEncoder.decode(message2) + "; but should be NULL",
			KnxEncoder.decode(message2) == null);
	byte[] message3 = new byte[] { (byte) 0xbc, 0x0d, 0, 0, 9, 1, 3, 0, (byte) 0x80, (byte) 0x12, (byte) 0x13,
			(byte) 0xAE };
	assertTrue(
			"KnxEncoder.decode(new byte[] {(byte) 0xbc, 0x0d, 0, 0, 9, 1, 3, 0, (byte) 0x80, (byte) 0x12, (byte) 0x13, (byte) 0xAE }) is "
					+ KnxEncoder.decode(message3) + "; but should be NULL",
			KnxEncoder.decode(message3) == null);
}