@Test
public void testCompositeModule() throws Exception {

    CloudKeeperEnvironment cloudKeeperEnvironment = cloudKeeper.newCloudKeeperEnvironmentBuilder()
        .setCleaningRequested(true)
        .build();
    int n = 5;
    BareModule pascalTriangleModule = PascalTriangle.createCompositeModule(n);
    WorkflowExecution workflowExecution = cloudKeeperEnvironment.newWorkflowExecutionBuilder(pascalTriangleModule)
        .setBundleIdentifiers(Collections.singletonList(SimpleRepository.BUNDLE_ID))
        .start();
    for (int k = 0; k <= n; ++k) {
        Assert.assertEquals(
            (int) workflowExecution.getOutput("coef_" + k).get(WAIT_SECONDS, TimeUnit.SECONDS),
            binomial(n, k)
        );
    }
    workflowExecution.toCompletableFuture().get(WAIT_SECONDS, TimeUnit.SECONDS);
}