@Test
public void testToIdObjectWithStringContainingBinaryHexThrowsWithUnevenLengthString() {

    String unevenHead = AMQPMessageIdHelper.AMQP_BINARY_PREFIX + "123";
    try {
        messageIdHelper.toIdObject(unevenHead);
        fail("expected exception was not thrown");
    } catch (AmqpProtocolException ex) {
        // expected
    }
}