@Test
public void shouldExtractOnlySpecifiedProperties() throws JMSException {

	TextMessage message = new MockTextMessage("test");
	message.setStringProperty("propA", "valA");
	// this should be ignored
	message.setStringProperty("propB", "valB");
	sut.onMessage(message);
	Collection<SimpleMessage> resultInStorage = storage.getMessagesAfter(0);
	assertThat(resultInStorage).hasSize(1);
	SimpleMessage first = resultInStorage.iterator().next();
	assertThat(first.getText()).isEqualTo("test");
	assertThat(first.getQueue()).isEqualTo("myQueue");
	assertThat(first.getProps()).hasSize(1).contains(entry("propA", "valA"));
}