@Test
public void testGetMessageAnnotationWhenMessageHasAnnotationsMap() {

    Map<Symbol, Object> messageAnnotationsMap = new HashMap<Symbol,Object>();
    messageAnnotationsMap.put(Symbol.valueOf("x-opt-test"), Boolean.TRUE);
    Message message = Proton.message();
    message.setMessageAnnotations(new MessageAnnotations(messageAnnotationsMap));
    assertNotNull(AmqpMessageSupport.getMessageAnnotation("x-opt-test", message));
}