DdlGeneratorFactory 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 ddlGeneratorMap is not null.") public DdlGenerator getDdlGenerator(BusinessObjectDataDdlOutputFormatEnum outputFormat) { DdlGenerator generator = ddlGeneratorMap.get(outputFormat); if (generator == null) { throw new UnsupportedOperationException( "No supported DDL generator found for output format: " + (outputFormat == null ? null : outputFormat.value()) + "."); } return generator; }  @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 ddlGeneratorMap is not null.") DdlGenerator getDdlGenerator(BusinessObjectDataDdlOutputFormatEnum outputFormat);  }
@Test(expected = UnsupportedOperationException.class) public void testNoDdlGeneratorFound() throws Exception { ddlGeneratorFactory.getDdlGenerator(null); }