@Test public void shouldSetOkStatus() throws Exception { status.ok(); verify(response).setStatus(200); }
@Test public void onStatusResultShouldThrowExceptionsOnOk() throws Exception { exception.expect(ValidationException.class); Status status = mock(Status.class); when(result.use(Status.class)).thenReturn(status); factory.instanceFor(Status.class, errors).ok(); }