assertEquals(location.getLongitude(), jsonLocation.getLongitude());
}
@Test
public void testAnnNameWithClass() {
Location location = new Location();
location.setLatitude(65);
location.setLongitude(12);
String json = new JsonSerializer().setClassMetadataName("class").serialize(location);
assertEquals("{\"class\":\"jodd.json.mock.Location\",\"lat\":65,\"lng\":12}", json);
Location jsonLocation = new JsonParser().setClassMetadataName("class").parse(json, Location.class);
assertEquals(location.getLatitude(), jsonLocation.getLatitude());
assertEquals(location.getLongitude(), jsonLocation.getLongitude());
}