@Test
public void testGetIcon() throws Exception {

  InstanceConfig instanceConfig = InstanceConfigTest.getInstanceConfigs(xml_with_instance_label).get(0);
  ViewEntity viewDefinition = ViewEntityTest.getViewEntity();
  ViewInstanceEntity viewInstanceDefinition = new ViewInstanceEntity(viewDefinition, instanceConfig);
  Assert.assertEquals("/this/is/the/icon/url/instance_1_icon.png", viewInstanceDefinition.getIcon());
  viewInstanceDefinition.setIcon("/a/different/icon.png");
  Assert.assertEquals("/a/different/icon.png", viewInstanceDefinition.getIcon());
  instanceConfig = InstanceConfigTest.getInstanceConfigs(xml_with_instance_label).get(1);
  viewDefinition = ViewEntityTest.getViewEntity();
  viewInstanceDefinition = new ViewInstanceEntity(viewDefinition, instanceConfig);
  Assert.assertEquals("/this/is/the/icon/url/icon.png", viewInstanceDefinition.getIcon());
}