@Test public void shouldSetConflictStatus() throws Exception { status.conflict(); verify(response).sendError(409); }
@Test public void onStatusResultShouldThrowExceptionsOnConflict() throws Exception { exception.expect(ValidationException.class); Status status = mock(Status.class); when(result.use(Status.class)).thenReturn(status); factory.instanceFor(Status.class, errors).conflict(); }