@Test
public void loadTest() throws Exception {

    assert executorService != null;
    DSLRuntimeContextFactory runtimeContextFactory = new DSLRuntimeContextFactory.Builder(executorService).build();
    URI bundleIdentifier = new URI(Module.URI_SCHEME, Fibonacci.class.getName(), null);
    CompletableFuture<RuntimeContext> future = runtimeContextFactory.newRuntimeContext(
        Collections.singletonList(bundleIdentifier)
    );
    try (RuntimeContext runtimeContext = future.get(5, TimeUnit.SECONDS)) {
        RuntimeRepository repository = runtimeContext.getRepository();
        Assert.assertEquals(repository.getBundles().size(), 1);
        Assert.assertEquals(repository.getBundles().get(0).getBundleIdentifier(), bundleIdentifier);
        RuntimeSimpleModuleDeclaration binarySumDeclaration = repository.getElement(
            RuntimeSimpleModuleDeclaration.class, Name.qualifiedName(BinarySum.class.getName()));
        Assert.assertNotNull(binarySumDeclaration);
        Assert.assertEquals(binarySumDeclaration.getPorts().size(), 3);
    }
}