EmrHelper extends AwsHelper { public boolean isActiveEmrState(String status) { return Arrays.asList(getActiveEmrClusterStates()).contains(status); }  String buildEmrClusterName(String namespaceCd, String emrDefinitionName, String clusterName); String getActiveEmrClusterId(String emrClusterId, String emrClusterName, String accountId); EmrParamsDto getEmrParamsDtoByAccountId(String accountId); EmrDao getEmrDao(); void setEmrDao(EmrDao emrDao); StepConfig getEmrHadoopJarStepConfig(String stepName, String jarLocation, String mainClass, List<String> scriptArguments, Boolean isContinueOnError); String getS3StagingLocation(String trustingAccountStagingBucketName); boolean isActiveEmrState(String status); boolean isInstanceDefinitionsEmpty(InstanceDefinitions instanceDefinitions); List<EmrClusterInstanceFleet> buildEmrClusterInstanceFleetFromAwsResult(ListInstanceFleetsResult awsInstanceFleetsResult);  }
@Test public void testIsActiveEmrState() { boolean isActive = emrHelper.isActiveEmrState("RUNNING"); assertTrue("not active", isActive); }