@Test
    public void testCreateAndClose() throws Exception {
        try (
            LocalLogManagerTestEnv env = new LocalLogManagerTestEnv.Builder(1).
                buildWithMockListeners()
        ) {
            env.close();
            assertNull(env.firstError.get());
        }
    }
Test creating a LocalLogManager and closing it.
metadata/src/test/java/org/apache/kafka/metalog/LocalLogManagerTest.java