double lat = 47.046962;
String layer = "casey.testing.layer";
String testPropertyKey = "name";
String testPropertyValue = "Testing Storage";
try {
Record record = new Record("simplegeo-boulder", layer, "Feature", lon, lat);
HashMap<String, Object> properties = new HashMap<String, Object>();
properties.put(testPropertyKey, testPropertyValue);
record.setProperties(properties);
client.addOrUpdateRecord(record);
Assert.assertEquals(layer, record.getLayer());
Assert.assertEquals(lat, record.getGeometry().getPoint().getLat(), 0d);
Assert.assertEquals(lon, record.getGeometry().getPoint().getLon(), 0d);
Assert.assertEquals(testPropertyValue, record.getProperties().get(testPropertyKey));
} catch (JSONException e) {
Assert.fail(e.getMessage());
} catch (IOException e) {
Assert.fail(e.getMessage());