@Test
public void testGetProperties() throws Exception {
InstanceConfig instanceConfig = InstanceConfigTest.getInstanceConfigs().get(0);
ViewEntity viewDefinition = ViewEntityTest.getViewEntity();
ViewInstanceEntity viewInstanceDefinition = new ViewInstanceEntity(viewDefinition, instanceConfig);
ViewRegistry viewRegistry = createNiceMock(ViewRegistry.class);
viewInstanceDefinition.putProperty("p1", "v1");
viewInstanceDefinition.putProperty("p2", "v2");
viewInstanceDefinition.putProperty("p3", "v3");
ViewContextImpl viewContext = new ViewContextImpl(viewInstanceDefinition, viewRegistry);
Map<String, String> properties = viewContext.getProperties();
Assert.assertEquals(3, properties.size());