@Test
public void testIsInboundCommandWithStatusExistWhenCommandNotInDB() {

    // Setup
    final String refId = "123";
    final InboundCommand.Status status = InboundCommand.Status.STARTED;
    when(mockCommandRepository.findByIdAndStatus(refId, status)).thenReturn(Optional.empty());
    // Run the test
    final boolean result = commandOrchestratorImplUnderTest.isInboundCommandWithStatusExist(refId, status);
    // Verify the results
    assertEquals(false, result);
}