@Test
public void testBeforeAllTestDecoratorExecutionOrder() throws Exception {

    // GIVEN
    final JpaUnit unit = new JpaUnit();
    // WHEN
    unit.beforeAll(context);
    // THEN
    final ArgumentCaptor<TestInvocation> invocationCaptor = ArgumentCaptor.forClass(TestInvocation.class);
    final InOrder order = inOrder(firstClassDecorator, secondClassDecorator);
    order.verify(firstClassDecorator).beforeAll(invocationCaptor.capture());
    assertThat(invocationCaptor.getValue().getTestClass(), equalTo(testClass));
    order.verify(secondClassDecorator).beforeAll(invocationCaptor.capture());
    assertThat(invocationCaptor.getValue().getTestClass(), equalTo(testClass));
    verifyZeroInteractions(firstMethodDecorator, secondMethodDecorator);
}