@Test
  public void testCreateSerialGatewaySenderWithNonExistingDiskStore() {
    addIgnoredException(IllegalStateException.class);

    String command = CliStrings.CREATE_GATEWAYSENDER + " --" + CliStrings.CREATE_GATEWAYSENDER__ID
        + "=ny" + " --" + CliStrings.CREATE_GATEWAYSENDER__REMOTEDISTRIBUTEDSYSTEMID + "=2" + " --"
        + CliStrings.CREATE_GATEWAYSENDER__PARALLEL + "=false" + " --"
        + CliStrings.CREATE_GATEWAYSENDER__DISKSTORENAME + "=" + nonExistingDiskStore;

    gfsh.executeAndAssertThat(command).statusIsError()
        .hasTableSection().hasRowSize(3).hasColumn("Message").contains(
            " java.lang.IllegalStateException: Disk store " + nonExistingDiskStore + " not found",
            " java.lang.IllegalStateException: Disk store " + nonExistingDiskStore + " not found",
            " java.lang.IllegalStateException: Disk store " + nonExistingDiskStore + " not found");

    gfsh.executeAndAssertThat("list gateways").statusIsSuccess().containsOutput(
        "GatewaySenders or GatewayReceivers are not available in cluster");
  }
GatewaySender with given attribute values and transport filters.
geode-wan/src/distributedTest/java/org/apache/geode/internal/cache/wan/wancommand/CreateDestroyGatewaySenderCommandDUnitTest.java