* Case 2.2: Primitive property type. <br/>
* Case 2.3: Map property type.
*/
@Test
public void testConvertToMap2() {
final BeanUtilsSubject inputX = new BeanUtilsSubject();
inputX.setField2(TEST_INT);
inputX.setField3(new HashMap<String, Class<?>>());
final Map<String, Object> output2 = BeanUtils.convertToMap(inputX, new String[] { BeanUtilsSubject.FIELD1 });
Assert.assertEquals("Case 2.1: Exclusion property count.", 2, output2.size());
Assert.assertEquals("Case 2.2: Primitive property type.", TEST_INT, output2.get(BeanUtilsSubject.FIELD2));
Assert.assertTrue("Case 2.3: Map property type.", output2.get(BeanUtilsSubject.FIELD3) instanceof Map);