@Test
public void testOnEventWhenCommandStatusNotPrepared() {

    // Setup
    final OutboundCommandPrepared event = mock(OutboundCommandPrepared.class);
    final CommandMeta meta = mock(CommandMeta.class);
    final OutboundCommand command = mock(OutboundCommand.class);
    CommonSetup(event, meta, command);
    when(command.getStatus()).thenReturn(OutboundCommand.Status.STARTED);
    // Run the test
    prepareRestCommandTransporter.onEvent(event);
    // Verify the results
    verify(mockEnvironment, never()).getProperty(anyString());
    verify(command, never()).setSource(anyString());
    verify(mockCommandOrchestrator, never()).receive(any(OutboundCommand.class));
}