}
@Test
public void testGetHttpRequestResponseLogger() {
final HttpRequestResponseFileLoggerFactory factory = new HttpRequestResponseFileLoggerFactory(DIRECTORY, FILE_NAME);
final HttpRequestResponseLogger httpRequestResponseLogger = factory.getHttpRequestResponseLogger();
assertNotNull(httpRequestResponseLogger);
assertTrue(httpRequestResponseLogger instanceof HttpRequestResponseFileLogger);
final HttpRequestResponseFileLogger fileLogger = (HttpRequestResponseFileLogger)httpRequestResponseLogger;
assertEquals(DIRECTORY, fileLogger.getDirectory());
assertEquals(FILE_NAME, fileLogger.getFileName());
assertEquals("Seqnr starts at 1.", 1, fileLogger.getSeqNr());
final HttpRequestResponseLogger httpRequestResponseLogger2 = factory.getHttpRequestResponseLogger();
assertFalse("We expect a new instance with each request.", httpRequestResponseLogger2 == httpRequestResponseLogger);
final HttpRequestResponseFileLogger fileLogger2 = (HttpRequestResponseFileLogger)httpRequestResponseLogger2;
assertEquals(DIRECTORY, fileLogger2.getDirectory());
assertEquals(FILE_NAME, fileLogger2.getFileName());
assertEquals("We expect seqnr to increment by 1.", 2, fileLogger2.getSeqNr());