@Test
public void testGetSubResourceDefinitions() throws Exception {

  ViewResourceDefinition viewResourceDefinition = new ViewResourceDefinition();
  Set<SubResourceDefinition> subResourceDefinitions = viewResourceDefinition.getSubResourceDefinitions ();
  Assert.assertEquals(1, subResourceDefinitions.size());
  Assert.assertEquals("ViewVersion", subResourceDefinitions.iterator().next().getType().name());
}