@Test
public void testAfterSpecificationThrowsJpaUnitExceptionIfAnyExceptionIsThrown() throws Exception {

    // GIVEN
    final Exception exception = new Exception("error");
    doThrow(exception).when(executor).processAfterAll(any(TestInvocation.class));
    try {
        // WHEN
        fixture.afterSpecification();
        fail("JpaUnitException is expected");
    } catch (final JpaUnitException e) {
        // THEN
        assertThat(e.getCause(), equalTo(exception));
    }
}