@Test
public void testGetSubResourceDefinitions() throws Exception {

  ViewSubResourceDefinition viewSubResourceDefinition = getViewSubResourceDefinition();
  new Resource.Type("MY_VIEW{1.0.0}/resource");
  new Resource.Type("MY_VIEW{1.0.0}/subresource");
  Set<SubResourceDefinition> subResourceDefinitions = viewSubResourceDefinition.getSubResourceDefinitions ();
  Assert.assertEquals(1, subResourceDefinitions.size());
  Assert.assertEquals("MY_VIEW{1.0.0}/subresource", subResourceDefinitions.iterator().next().getType().name());
}