assertThat(entity.getValues().size(), is(1));
assertThat(entity.getValues().get("testkey"), is("testvalue"));
}
private MapMapper createMapper() throws NoSuchMethodException {
final MapMapper result = new MapMapper(new FieldContainer(EntityWithHashmap.class.getMethod("getValues", null)));
final MapperContext context = new MapperContext();
final ClassMapper classMapper = mock(ClassMapper.class);
when(classMapper.getContext()).thenReturn(context);
return result;
}