ContinentSerializer implements OObjectSerializer<Continent, String> { @Override public Object unserializeFieldValue(Class<?> iClass, String iFieldValue) { return Continent.valueOf(iFieldValue); }  @Override Object serializeFieldValue(Class<?> iClass, Continent iFieldValue); @Override Object unserializeFieldValue(Class<?> iClass, String iFieldValue);  }
@Test public void testUnserializeFieldValue() { System.out.println("unserializeFieldValue"); Class iClass = null; Object iFieldValue = Continent.valueOf("Africa"); ContinentSerializer instance = new ContinentSerializer(); Object expResult = Continent.Africa; Object result = instance.unserializeFieldValue(iClass, "Africa"); assertEquals(expResult, result); }