oneOf(principalDao).execute(with(any(String.class)));
will(returnValue(principalMock));
oneOf(serviceActionControllerMock).execute(with(any(ServiceActionContext.class)),
with(any(ServiceAction.class)));
will(throwException(new ExecutionException()));
}
});
sut.deletePersonData(testId, testGroupId, TEST_APP_ID, Person.Field.DEFAULT_FIELDS, FAKETOKEN);