public static boolean isValidKsqlModuleType(final String moduleType) {
    for (KSqlValidModuleType type: KSqlValidModuleType.values()) {
      if (moduleType.equals(type.name())) {
        return true;
      }
    }
    return false;
  }
@Test
  public void testValidKsqlDeploymentMode() {
    List<String> validDeploymentModes = Arrays.asList(
        "LOCAL_CLI", "REMOTE_CLI", "SERVER", "EMBEDDED", "CLI"
    );
    for (String mode: validDeploymentModes) {
      assertTrue("Expected KSQL deployment mode '" + mode + "' to be valid",
                 MetricsValidation.isValidKsqlModuleType(mode));
    }
  }