### Question:
RollingLocationLogAppender extends FileAppender<ILoggingEvent> implements Flushable, Syncable { public RollingLocationLogAppender() { setName(getClass().getName()); } RollingLocationLogAppender(); @Override void start(); @Override void doAppend(ILoggingEvent eventObject); @Override void flush(); @Override void sync(); @Override void stop(); @Override void setOutputStream(OutputStream outputStream); void setRollingPolicy(RollingPolicy policy); void setTriggeringPolicy(TriggeringPolicy<ILoggingEvent> policy); String getBasePath(); void setBasePath(String basePath); String getFilePermissions(); void setFilePermissions(String filePermissions); String getFilePath(); void setFilePath(String filePath); String getDirPermissions(); void setDirPermissions(String dirPermissions); void setFileMaxInactiveTimeMs(long fileMaxInactiveTimeMs); long getFileMaxInactiveTimeMs();  }### Answer:
@Test public void testRollingLocationLogAppender() throws Exception { AppenderContext appenderContext = new LocalAppenderContext(injector.getInstance(TransactionRunner.class), injector.getInstance(LocationFactory.class), new NoOpMetricsCollectionService()); JoranConfigurator configurator = new JoranConfigurator(); configurator.setContext(appenderContext); appenderContext.reset(); configurator.doConfigure(getClass().getResourceAsStream("/rolling-appender-logback-test.xml")); StatusPrinter.printInCaseOfErrorsOrWarnings(appenderContext); RollingLocationLogAppender rollingAppender = (RollingLocationLogAppender) appenderContext.getLogger(RollingLocationLogAppenderTest.class) .getAppender("rollingAppender"); addTagsToMdc("testNamespace", "testApp"); Logger logger = appenderContext.getLogger(RollingLocationLogAppenderTest.class); ingestLogs(logger, 5); Map<LocationIdentifier, LocationOutputStream> activeFiles = rollingAppender.getLocationManager() .getActiveLocations(); Assert.assertEquals(1, activeFiles.size()); verifyFileOutput(activeFiles, 5); addTagsToMdc("testNamespace", "testApp1"); ingestLogs(logger, 5); activeFiles = rollingAppender.getLocationManager().getActiveLocations(); Assert.assertEquals(2, activeFiles.size()); verifyFileOutput(activeFiles, 5); addTagsToMdc("testNamespace1", "testApp1"); ingestLogs(logger, 5); activeFiles = rollingAppender.getLocationManager().getActiveLocations(); Assert.assertEquals(3, activeFiles.size()); verifyFileOutput(activeFiles, 5); }