@Test
public void testIntToBoolean() throws Exception {

    Map<String, Object> map = new HashMap<>();
    map.put("name", "myname");
    map.put("male", 1);
    map.put("female", 0);
    PersonInfo personInfo = (PersonInfo) PojoUtils.realize(map, PersonInfo.class);
    assertEquals("myname", personInfo.getName());
    assertTrue(personInfo.isMale());
    assertFalse(personInfo.isFemale());
}