EmrStepHelperFactory implements InitializingBean { @SuppressFBWarnings(value = "UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR", justification = "This is a false positive. afterPropertiesSet is called before this method which will ensure emrStepHelperMap is not null.") public EmrStepHelper getStepHelper(String stepType) { EmrStepHelper stepHelper = emrStepHelperMap.get(stepType); if (stepHelper == null) { throw new IllegalArgumentException("No supported EMR step helper found for stepType: " + stepType + "."); } return stepHelper; }  @Override void afterPropertiesSet(); @SuppressFBWarnings(value = "UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR", justification = "This is a false positive. afterPropertiesSet is called before this method which will ensure emrStepHelperMap is not null.") EmrStepHelper getStepHelper(String stepType);  }
@Test(expected = IllegalArgumentException.class) public void testNoStepHelperFound() throws Exception { emrStepHelperFactory.getStepHelper("UNSUPPORTED_STEP"); }