@Test
  public void commandSucceedsIfAnyReceiverFailsToCreateEvenWithoutSkipOption() {
    // Create a receiver on one server (but not all) so that the command to create receivers on all
    // will fail on one (but not all). Such a failure should be reported as a failure to GFSH,
    // unless --skip-if-exists is present.
    Integer locator1Port = locatorSite1.getPort();
    server1 = clusterStartupRule.startServerVM(1, locator1Port);
    server2 = clusterStartupRule.startServerVM(2, locator1Port);
    String createOnS1 = CREATE_GATEWAYRECEIVER + " --member=" + server1.getName();
    gfsh.executeAndAssertThat(createOnS1).statusIsSuccess()
        .tableHasColumnWithExactValuesInAnyOrder("Member", SERVER_1)
        .tableHasColumnWithValuesContaining("Message",
            "GatewayReceiver created on member \"" + SERVER_1 + "\"");
    gfsh.executeAndAssertThat(CREATE_GATEWAYRECEIVER).statusIsSuccess()
        .tableHasColumnWithExactValuesInAnyOrder("Member", SERVER_1, SERVER_2)
        .tableHasColumnWithExactValuesInAnyOrder("Status", "ERROR", "OK")
        .tableHasColumnWithValuesContaining("Message",
            "java.lang.IllegalStateException: " + A_GATEWAY_RECEIVER_ALREADY_EXISTS_ON_THIS_MEMBER,
            "GatewayReceiver created on member \"" + SERVER_2 + "\"");
  }
DUnit tests for 'create gateway-receiver' command.
geode-wan/src/distributedTest/java/org/apache/geode/internal/cache/wan/wancommand/CreateGatewayReceiverCommandDUnitTest.java