@Test
void addRegistry() {

    RegistryConfig registryConfig = new RegistryConfig();
    InterfaceBuilder builder = new InterfaceBuilder();
    builder.addRegistry(registryConfig);
    Assertions.assertEquals(1, builder.build().getRegistries().size());
    Assertions.assertSame(registryConfig, builder.build().getRegistries().get(0));
    Assertions.assertSame(registryConfig, builder.build().getRegistry());
}