import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.fail;
public class ObjectMapperTest {
@Test
public void whenValuesAreValid_ThenTheMappedObjectShouldBeCorrectlyPopulated() throws Exception {
<BUG>ObjectMapper mapper = new ObjectMapper(Person.class);
</BUG>
Map<String, String> values = new HashMap<>();
values.put("firstName", "foo");
values.put("lastName", "bar");

import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.fail;
public class ObjectMapperTest {
@Test
public void whenValuesAreValid_ThenTheMappedObjectShouldBeCorrectlyPopulated() throws Exception {
ObjectMapper<Person> mapper = new ObjectMapper<>(Person.class);
Map<String, String> values = new HashMap<>();
values.put("firstName", "foo");
values.put("lastName", "bar");
