@Ignore("TODO - fix broken test resulting from introduction of actionresult repr")
@Test
public void invokeNonIdempotent_returningVoid_withReferenceArgs_usingClientFollow() throws Exception {
// given simple entity with 'flag' property set to true
final LinkRepresentation linkToSimpleEntity = givenLinkToSimpleEntity(0);
final RestfulResponse<DomainObjectRepresentation> restfulResponseBefore = client.followT(linkToSimpleEntity);
final DomainObjectRepresentation simpleEntityBefore = restfulResponseBefore.getEntity();
final Boolean before = simpleEntityBefore.getProperty("flag").getBoolean("value");
// and given 'toggle' action on repo
final JsonRepresentation givenAction = givenAction("simples", "toggle");
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(1));
assertThat(args.mapHas("object"), is(true));
// when
args.mapPut("object", linkToSimpleEntity);