@Test
public void testFeedView() throws Exception {

    Feed feed = (Feed) EntityType.FEED.getUnmarshaller().unmarshal(
            getClass().getResourceAsStream(FEED_XML));
    Feed view = EntityUtil.getClusterView(feed, "testCluster");
    Assert.assertEquals(view.getClusters().getClusters().size(), 1);
    Assert.assertEquals(view.getClusters().getClusters().get(0).getName(), "testCluster");
    
    view = EntityUtil.getClusterView(feed, "backupCluster");
    Assert.assertEquals(view.getClusters().getClusters().size(), 2);
}