@Test
public void testFlattenNullProperties() throws Exception {

    final List<String> expectedResult = newArrayList("booleanProperty", TRUE.toString(), "intProperty", "1", "stringProperty", "null");
    final Bean bean = new Bean(1, true, null);
    assertEquals(expectedResult, flattenProperties(bean, Bean.class));
}