### Question:
BackupProtocolServiceFactory { public static BackupProtocolService backupProtocolService() { return backupProtocolService( System.out ); } private  BackupProtocolServiceFactory(); static BackupProtocolService backupProtocolService(); static BackupProtocolService backupProtocolService( OutputStream logDestination ); static BackupProtocolService backupProtocolService( Supplier<FileSystemAbstraction> fileSystemSupplier, LogProvider logProvider,
            OutputStream logDestination, Monitors monitors, PageCache pageCache );  }### Answer:
@Test void createDefaultBackupProtocolServiceCreation() throws Exception { BackupProtocolService protocolService = backupProtocolService(); assertNotNull( protocolService ); protocolService.close(); }
@Test void createBackupProtocolServiceWithOutputStream() throws Exception { BackupProtocolService protocolService = backupProtocolService( NULL_OUTPUT_STREAM ); assertNotNull( protocolService ); protocolService.close(); }
@Test void createBackupProtocolServiceWithAllPossibleParameters() throws Exception { PageCache pageCache = mock( PageCache.class ); BackupProtocolService protocolService = backupProtocolService( EphemeralFileSystemRule::new, NullLogProvider.getInstance(), NULL_OUTPUT_STREAM, new Monitors(), pageCache ); assertNotNull( protocolService ); protocolService.close(); }