final NamespaceResponse response = new NamespaceResponse(personalSpaces, otherUsersSpaces, sharedSpaces);
return response;
}
private Responder expectResponse(final NamespaceResponse response) {
final Responder responderMock = mockery.mock(Responder.class);
mockery.checking(new Expectations(){{
oneOf(responderMock).respond(with(equal(response)));
oneOf(responderMock).respond(with(any(StatusResponse.class)));
}});
return responderMock;