@Test
public void testGetEntities() throws Exception {

  ViewConfig config = ViewConfigTest.getConfig(xml);
  PersistenceConfig persistenceConfig = config.getPersistence();
  Assert.assertEquals(2, persistenceConfig.getEntities().size());
  config = ViewConfigTest.getConfig(xml_no_entities);
  persistenceConfig = config.getPersistence();
  Assert.assertTrue(persistenceConfig.getEntities().isEmpty());
  config = ViewConfigTest.getConfig(xml_no_persistence);
  persistenceConfig = config.getPersistence();
  Assert.assertTrue(persistenceConfig.getEntities().isEmpty());
}