NiFiRestConfigurationProvider implements ConfigurationProvider { @Override public List<String> getContentTypes() { return Collections.singletonList(CONTENT_TYPE); } NiFiRestConfigurationProvider(ConfigurationCache configurationCache, String nifiUrl, String templateNamePattern);  NiFiRestConfigurationProvider(ConfigurationCache configurationCache, HttpConnector httpConnector, String templateNamePattern); @Override List<String> getContentTypes(); @Override Configuration getConfiguration(String contentType, Integer version, Map<String, List<String>> parameters); static final String CONTENT_TYPE; }
@Test public void testContentType() { assertEquals(Collections.singletonList(NiFiRestConfigurationProvider.CONTENT_TYPE), niFiRestConfigurationProvider.getContentTypes()); }