@Test
public void testGetDescription() 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 an instance description.", viewInstanceDefinition.getDescription());
  instanceConfig = InstanceConfigTest.getInstanceConfigs(xml_without_instance_label).get(0);
  viewDefinition = ViewEntityTest.getViewEntity();
  viewInstanceDefinition = new ViewInstanceEntity(viewDefinition, instanceConfig);
  Assert.assertNull(viewInstanceDefinition.getDescription());
}