// given simple entity with 'flag' property set to true
final LinkRepresentation linkToSimpleEntity = givenLinkToSimpleEntity(0);
// given
final JsonRepresentation givenAction = givenAction("simples", "update");
final ObjectActionRepresentation actionRepr = givenAction.as(ObjectActionRepresentation.class);
// when
final LinkRepresentation invokeLink = actionRepr.getInvoke();
// then
assertThat(invokeLink, is(not(nullValue())));
final JsonRepresentation args = invokeLink.getArguments();
assertThat(args.size(), is(0));
assertThat(args.mapHas("object"), is(true));
assertThat(args.mapHas("name"), is(true));
assertThat(args.mapHas("flag"), is(true));
assertThat(args.mapHas("Boolean"), is(true));
assertThat(args.mapHas("int"), is(true));
assertThat(args.mapHas("integer"), is(true));
assertThat(args.mapHas("long1"), is(true));
assertThat(args.mapHas("long2"), is(true));
assertThat(args.mapHas("double1"), is(true));
assertThat(args.mapHas("double2"), is(true));
assertThat(args.mapHas("bigInteger"), is(true));
assertThat(args.mapHas("bigDecimal"), is(true));
// when
args.mapPut("name", "New Name");
args.mapPut("flag", true);
final RestfulResponse<DomainObjectRepresentation> restfulResponse = client.followT(invokeLink, args);
// then
final DomainObjectRepresentation objectRepr = restfulResponse.getEntity();