@Test
public void testIsVisible() throws Exception {

  InstanceConfig instanceConfig = InstanceConfigTest.getInstanceConfigs(xml_with_instance_label).get(0);
  ViewEntity viewDefinition = ViewEntityTest.getViewEntity();
  ViewInstanceEntity viewInstanceDefinition = new ViewInstanceEntity(viewDefinition, instanceConfig);
  Assert.assertTrue(viewInstanceDefinition.isVisible());
  instanceConfig = InstanceConfigTest.getInstanceConfigs(xml_with_instance_label).get(1);
  viewDefinition = ViewEntityTest.getViewEntity();
  viewInstanceDefinition = new ViewInstanceEntity(viewDefinition, instanceConfig);
  Assert.assertFalse(viewInstanceDefinition.isVisible());
  instanceConfig = InstanceConfigTest.getInstanceConfigs(xml_without_instance_label).get(0);
  viewDefinition = ViewEntityTest.getViewEntity();
  viewInstanceDefinition = new ViewInstanceEntity(viewDefinition, instanceConfig);
  Assert.assertTrue(viewInstanceDefinition.isVisible());
}