@Test
void addRegistries() {

    RegistryConfig registry = new RegistryConfig();
    ApplicationBuilder builder = new ApplicationBuilder();
    builder.addRegistries(Collections.singletonList(registry));
    Assertions.assertNotNull(builder.build().getRegistry());
    Assertions.assertEquals(1, builder.build().getRegistries().size());
    Assertions.assertSame(registry, builder.build().getRegistry());
}