@Test
public void testAddGetResourceDefinition() throws Exception {
ViewEntity viewDefinition = getViewEntity();
ViewSubResourceDefinition definition = createNiceMock(ViewSubResourceDefinition.class);
Resource.Type type = new Resource.Type("myType");
expect(definition.getType()).andReturn(type);
replay(definition);
viewDefinition.addResourceDefinition(definition);