### Question:
AmqpJmsMapMessageFacade extends AmqpJmsMessageFacade implements JmsMapMessageFacade { @SuppressWarnings("unchecked") @Override void setBody(Section body) { if (body == null) { initializeEmptyBody(); } else if (body instanceof AmqpValue) { Object o = ((AmqpValue) body).getValue(); if (o == null) { initializeEmptyBody(); } else if (o instanceof Map) { messageBodyMap = (Map<String, Object>) o; super.setBody(body); } else { throw new IllegalStateException("Unexpected message body type: " + body.getClass().getSimpleName()); } } else { throw new IllegalStateException("Unexpected message body type: " + body.getClass().getSimpleName()); } }  @Override byte getJmsMsgType(); @Override AmqpJmsMapMessageFacade copy(); @Override Enumeration<String> getMapNames(); @Override boolean itemExists(String key); @Override Object get(String key); @Override void put(String key, Object value); @Override Object remove(String key); @Override void clearBody(); @Override boolean hasBody(); @Override JmsMapMessage asJmsMessage();  }### Answer:
@Test public void testCreateWithAmqpSequenceBodySectionThrowsISE() throws Exception { Message message = Message.Factory.create(); message.setBody(new AmqpSequence(null) ); try { createReceivedMapMessageFacade(createMockAmqpConsumer(), message); fail("expected exception to be thrown"); } catch (IllegalStateException ise) { } }
@Test public void testCreateWithAmqpValueBodySectionContainingUnexpectedValueThrowsISE() throws Exception { Message message = Message.Factory.create(); message.setBody(new AmqpValue("not-a-map")); try { createReceivedMapMessageFacade(createMockAmqpConsumer(), message); fail("expected exception to be thrown"); } catch (IllegalStateException ise) { } }