### Question:
MapObjectConversion { public static Map<String, Object> toMap( final Object object, final String... ignore ) { return toMap( object, Sets.set( ignore ) ); }  static T fromList( List<?> argList, Class<T> clazz ); static T fromList( boolean respectIgnore, String view, FieldsAccessor fieldsAccessor,
                                  List<?> argList, Class<T> clazz, Set<String> ignoreSet ); static T fromList( FieldsAccessor fieldsAccessor, List<?> argList, Class<T> clazz ); static List<?> toList( Object object); @SuppressWarnings( "unchecked" ) static T fromMap( Map<String, Object> map, Class<T> clazz ); @SuppressWarnings( "unchecked" ) static T fromMap( Map<String, Object> map, Class<T> clazz, String... excludeProperties ); static Object fromMap( Map<String, Object> map ); @SuppressWarnings("unchecked") static T fromMap( boolean respectIgnore, String view, FieldsAccessor fieldsAccessor, Map<String, Object> map, Class<T> cls, Set<String> ignoreSet ); @SuppressWarnings("unchecked") static T fromValueMap( boolean respectIgnore, String view, final FieldsAccessor fieldsAccessor,
                                      final Map<String, Value> valueMap,
                                      final Class<T> cls, Set<String> ignoreSet ); static Map<String, Object> toMap( final Object object, final String... ignore ); static Map<String, Object> toMap( final Object object, Set<String> ignore ); static Map<String, Object> toMap( final Object object ); static Map<String, Object> toMapWithType( final Object object ); static List<T> convertListOfMapsToObjects(   boolean respectIgnore, String view,
                                                            FieldsAccessor fieldsAccessor,
                                                            Class<T> componentType, List<Map> list, Set<String> ignoreProperties); static List<T> convertListOfMapsToObjects(Class<T> componentType, List<Map> list); static List<Map<String, Object>> toListOfMaps( Collection<?> collection ); static Map toPrettyMap(Object object);  }### Answer:
@Test public void testToMap() { Employee emp = new Employee("ABC" ); Map<String, Object> employeeMap = toMap(emp); ok = employeeMap != null || die(); ok = employeeMap.get("abc").equals( "ABC" ) || die(); ok = employeeMap.get("i").equals( -555 ) || die(); ok = employeeMap.get("dob").toString().equals( Dates.getUSDate( 5, 25, 1980 ).toString() ) || die(); ok = employeeMap.get("currency").equals( Currency.getInstance( "USD" ) ) || die(); ok = employeeMap.get("salary").equals(new BigDecimal( "100000.00" ) ) || die(); ok = employeeMap.get("name") != null || die(); ok = employeeMap.get("name") instanceof Map || die(); Map name = (Map)employeeMap.get("name"); ok = name.get("first").equals("Joe") || die(); ok = name.get("last").equals("Smith") || die(); }