@Test
public void testReceiveInboundCommand() {

    // Setup
    final InboundCommand command = mock(InboundCommand.class);
    when(mockCommandRepository.exists(anyString())).thenReturn(true);
    when(mockCommandRepository.findOne(anyString())).thenReturn(command);
    when(command.buildMeta()).thenReturn(mockCommandMeta);
    // Run the test
    commandOrchestratorImplUnderTest.receive(command);
    // Verify the results
    verify(mockPublisher).publishEvent(any(InboundCommandStarted.class));
}