### Question:
AmqpMessageSupport { public static boolean isContentType(Symbol contentType, Symbol messageContentType) { if (contentType == null) { return messageContentType == null; } else if (messageContentType == null) { return false; } else { return contentType.equals(messageContentType); } }  static Object getMessageAnnotation(Symbol key, MessageAnnotations messageAnnotations); static boolean isContentType(Symbol contentType, Symbol messageContentType); static Message decodeMessage(ByteBuf encodedBytes); static ReadableBuffer encodeMessage(Message message); static final Symbol JMS_MSG_TYPE; static final Symbol JMS_DELIVERY_TIME; static final byte JMS_MESSAGE; static final byte JMS_OBJECT_MESSAGE; static final byte JMS_MAP_MESSAGE; static final byte JMS_BYTES_MESSAGE; static final byte JMS_STREAM_MESSAGE; static final byte JMS_TEXT_MESSAGE; static final String JMS_AMQP_TTL; static final String JMS_AMQP_REPLY_TO_GROUP_ID; static final String JMS_AMQP_TYPED_ENCODING; static final Symbol SERIALIZED_JAVA_OBJECT_CONTENT_TYPE; static final Symbol OCTET_STREAM_CONTENT_TYPE; static final Symbol LEGACY_TO_TYPE_MSG_ANNOTATION_SYMBOL; static final Symbol LEGACY_REPLY_TO_TYPE_MSG_ANNOTATION_SYMBOL; static final String LEGACY_QUEUE_ATTRIBUTE; static final String LEGACY_TOPIC_ATTRIBUTE; static final String LEGACY_TEMPORARY_ATTRIBUTE; }### Answer:
@Test public void testIsContentTypeWithNullStringValueAndNullContentType() { assertTrue(AmqpMessageSupport.isContentType(null, null)); }
@Test public void testIsContentTypeWithNonNullSymbolValueAndNullContentType() { assertFalse(AmqpMessageSupport.isContentType(Symbol.valueOf("test"), null)); }
@Test public void testIsContentTypeWithNonNullSymbolValueAndNonNullContentTypeNotEqual() { assertFalse(AmqpMessageSupport.isContentType(Symbol.valueOf("test"), Symbol.valueOf("fails"))); }
@Test public void testIsContentTypeWithNonNullSymbolValueAndNonNullContentTypeEqual() { assertTrue(AmqpMessageSupport.isContentType(Symbol.valueOf("test"), Symbol.valueOf("test"))); }
@Test public void testIsContentTypeWithNullSymbolValueAndNonNullContentType() { assertFalse(AmqpMessageSupport.isContentType(null, Symbol.valueOf("test"))); }