TypeDescriptor addrTypeDescriptor = TypeDescriptor.valueOf(Addresss.class);
TypeDescriptor strTypeDescriptor = TypeDescriptor.valueOf(String.class);
RopRequestMessageConverter converter = new RopRequestMessageConverter();
String addressStr = "{\"zoneCode\":\"001\",\"doorCode\":\"002\",\"streets\":[{\"no\":\"001\",\"name\":\"street1\"}]}";
Object destObj = converter.convert(addressStr, strTypeDescriptor, addrTypeDescriptor);
assertTrue(destObj instanceof Addresss);
Addresss addresss = (Addresss) destObj;
assertEquals(addresss.getZoneCode(), "001");
assertEquals(addresss.getDoorCode(), "002");
assertNotNull(addresss.getStreets());