@SuppressWarnings("UnstableApiUsage")
    @Override
    public Graph<Entity> resolveForInstallation(Entity entity,
                                                Map<String, ValueReference> parameters,
                                                Map<EntityDescriptor, Entity> entities) {
        ensureV1(entity);
        return resolveEntityV1((EntityV1) entity, parameters, entities);
    }
@Test
    @MongoDBFixtures("ViewFacadeTest.json")
    public void itShouldResolveDependencyForInstallation() throws Exception {
        Entity streamEntity = createStreamEntity();
        Entity entity = createViewEntity();

        final EntityDescriptor depDescriptor = streamEntity.toEntityDescriptor();
        final Map<EntityDescriptor, Entity> entityDescriptorEntityMap = ImmutableMap.of(depDescriptor, streamEntity);
        Graph<Entity> graph = facade.resolveForInstallation(entity, Collections.emptyMap(), entityDescriptorEntityMap);

        assertThat(graph.nodes().toArray()).contains(streamEntity);
    }