void () { DefaultLogger.disableStderrDumping(getTestRootDisposable()); Disposable disposable1 = Disposer.newDisposable(); try { createFakeType("myCreativeName0", "display1", "descr1", "ext1", disposable1); assertThrows(Throwable.class, () -> createFakeType("myCreativeName1", "display1", "descr2", "ext2", disposable1)); } finally { Disposer.dispose(disposable1); } Disposable disposable2 = Disposer.newDisposable(); try { createFakeType("myCreativeName2", "display0", "descr", "ext1", disposable2); assertThrows(Throwable.class, () -> createFakeType("myCreativeName3", "display1", "descr", "ext2", disposable2)); } finally { Disposer.dispose(disposable2); } }