tableFeed = (Feed) storeEntity(EntityType.FEED, TABLE_FEED, null);
}
protected Entity storeEntity(EntityType type, String template, String writeEndpoint) throws Exception {
Unmarshaller unmarshaller = type.getUnmarshaller();
Entity entity = (Entity) unmarshaller
.unmarshal(OozieFeedMapperTest.class.getResource(template));
store.publish(type, entity);
if (type == EntityType.CLUSTER) {
Cluster cluster = (Cluster) entity;