@Test
public void testGetResourceProviders() throws Exception {

  ViewConfig config = ViewConfigTest.getConfig();
  ViewEntity viewDefinition = ViewEntityTest.getViewEntity();
  ViewRegistry registry = ViewRegistry.getInstance();
  viewDefinition.setConfiguration(config);
  registry.setupViewDefinition(viewDefinition, getClass().getClassLoader());
  Map<Resource.Type, ResourceProvider> providerMap = registry.getResourceProviders();
  Assert.assertEquals(3, providerMap.size());
  Assert.assertTrue(providerMap.containsKey(Resource.Type.valueOf("MY_VIEW{1.0.0}/resource")));
  Assert.assertTrue(providerMap.containsKey(Resource.Type.valueOf("MY_VIEW{1.0.0}/subresource")));
  Assert.assertTrue(providerMap.containsKey(Resource.Type.valueOf("MY_VIEW{1.0.0}/resources")));
}