107108109110111112113114
@Test public void testFailure_errors() throws Exception { thrown.expect(RuntimeException.class); when(insertAll.execute()).thenReturn(response); response.setInsertErrors(ImmutableList.of(new InsertErrors())); action.run(); }