### Question:
AmqpJmsObjectMessageFacade extends AmqpJmsMessageFacade implements JmsObjectMessageFacade { @Override public Serializable getObject() throws IOException, ClassNotFoundException { return delegate.getObject(); }  @Override void initialize(AmqpConnection connection); @Override void initialize(AmqpConsumer consumer); @Override byte getJmsMsgType(); boolean isAmqpTypedEncoding(); @Override AmqpJmsObjectMessageFacade copy(); @Override Serializable getObject(); @Override void setObject(Serializable value); @Override void clearBody(); @Override boolean hasBody(); @Override void onSend(long producerTtl); @Override JmsObjectMessage asJmsMessage();  }### Answer:
@Test public void testGetObjectUsingReceivedMessageWithDataSectionContainingNothingReturnsNull() throws Exception { Message message = Message.Factory.create(); message.setContentType(AmqpMessageSupport.SERIALIZED_JAVA_OBJECT_CONTENT_TYPE.toString()); message.setBody(new Data(null)); AmqpJmsObjectMessageFacade amqpObjectMessageFacade = createReceivedObjectMessageFacade(createMockAmqpConsumer(), message); assertNull("Expected null object", amqpObjectMessageFacade.getObject()); }
@Test public void testGetObjectUsingReceivedMessageWithNonDataNonAmqvValueBinarySectionThrowsISE() throws Exception { Message message = Message.Factory.create(); message.setContentType(AmqpMessageSupport.SERIALIZED_JAVA_OBJECT_CONTENT_TYPE.toString()); message.setBody(new AmqpValue("nonBinarySectionContent")); AmqpJmsObjectMessageFacade amqpObjectMessageFacade = createReceivedObjectMessageFacade(createMockAmqpConsumer(), message); try { amqpObjectMessageFacade.getObject(); fail("Expected exception to be thrown"); } catch (IllegalStateException ise) { } }