@Test
public void jdkPropertiesUpdated() throws Exception {
final DomainObjectRepresentation domainObjectRepr = getObjectRepr("JDKV", "38");
final LinkRepresentation updateLink = domainObjectRepr.getLinkWithRel(Rel.UPDATE);
final JsonRepresentation argRepr = updateLink.getArguments();
final BigDecimal bd = new BigDecimal("12345678901234567.789");
final BigInteger bi = new BigInteger("123456789012345678");
final java.sql.Date sqld = new java.sql.Date(new DateTime(2014,5,1, 0,0, DateTimeZone.UTC).getMillis());
final java.sql.Time sqlt = new java.sql.Time(13,0,0);
final java.sql.Timestamp sqlts = new java.sql.Timestamp(114,4,1,13,0,0,0);
final java.util.Date d = new DateTime(2014,5,1, 11,45, DateTimeZone.UTC).toDate();
final String e = "ORANGE";
final String s = "Tangerine";
argRepr.mapPut("bigDecimalProperty.value", bd);
argRepr.mapPut("bigIntegerProperty.value", bi);
argRepr.mapPut("javaSqlDateProperty.value", asIsoNoT(sqld)); // 1-may-2014
argRepr.mapPut("javaSqlTimeProperty.value", asIsoOnlyT(sqlt)); // 1 pm
argRepr.mapPut("javaSqlTimestampProperty.value", sqlts.getTime());
argRepr.mapPut("javaUtilDateProperty.value", asIso(d));
argRepr.mapPut("myEnum.value", e);
argRepr.mapPut("stringProperty.value", s);
final RestfulResponse<JsonRepresentation> result = client.follow(updateLink, argRepr);
assertThat(result.getStatus(), is(HttpStatusCode.OK));
final DomainObjectRepresentation afterResp = result.getEntity().as(DomainObjectRepresentation.class);