public static boolean isValidKsqlModuleType(final String moduleType) {
    for (KSqlValidModuleType type: KSqlValidModuleType.values()) {
      if (moduleType.equals(type.name())) {
        return true;
      }
    }
    return false;
  }
@Test
  public void testInvalidKsqlDeploymentMode() {
    List<String> invalidDeploymentModes = Arrays.asList(
        "local_CLI", "REMOTECLI", "servER", "random", "ANOTHER_CLI"
    );
    for (String mode: invalidDeploymentModes) {
      assertFalse("Expected KSQL deployment mode '" + mode + "' to be invalid",
                 MetricsValidation.isValidKsqlModuleType(mode));
    }
  }