@Test
public void testBuildOuterLocalTxStep() {

    // Setup
    final LocalTransaction localTransaction = mock(LocalTransaction.class);
    // Run the test
    final StepLocalTxVisitor result = businessLocalTransactionManagerImplUnderTest.buildOuterLocalTxStep(Optional.of(localTransaction));
    // Verify the results
    assertEquals(result.getProvision().getLocalTransaction(), localTransaction);
    assertEquals(result.getBubbleCache(), mockBubbleCache);
    assertEquals(result.getApplicationEventPublisher(), mockApplicationEventPublisher);
    assertEquals(result.getCommandOrchestrator(), mockCommandOrchestrator);
}