coffeeMachines.save(coffeeMachine);
fail();
} catch (MappingException me) {
assertTrue("converter not found", me.getCause() instanceof ConverterNotFoundException);
ConverterNotFoundException e = (ConverterNotFoundException) me.getCause();
assertThat(asSet(DripBrew.class.getName(), EspressoBasedCoffee.class.getName()), hasItem(e.getSourceType().getName()));
assertThat(asSet(DripBrew.class.getName(), EspressoBasedCoffee.class.getName()), hasItem(e.getTargetType().getName()));
assertThat(e.getSourceType().getName(), is(not(equalTo(e.getTargetType().getName()))));
}
}