@Test
public void testIsInboundCommandExistWhenCommandNotInDB() {

    // Setup
    final String refId = "123";
    when(mockCommandRepository.findByRefId(refId)).thenReturn(Optional.empty());
    // Run the test
    final boolean result = commandOrchestratorImplUnderTest.isInboundCommandExist(refId);
    // Verify the results
    assertEquals(false, result);
}