### Question:
FileSystemRepository implements ContentRepository { @Override public OutputStream write(final ContentClaim claim) throws IOException { return write(claim, false); } FileSystemRepository();  FileSystemRepository(final NiFiProperties nifiProperties); @Override void initialize(final ResourceClaimManager claimManager); @Override void shutdown(); @Override Set<String> getContainerNames(); @Override long getContainerCapacity(final String containerName); @Override long getContainerUsableSpace(String containerName); @Override void cleanup(); @Override ContentClaim create(final boolean lossTolerant); @Override int incrementClaimaintCount(final ContentClaim claim); @Override int getClaimantCount(final ContentClaim claim); @Override int decrementClaimantCount(final ContentClaim claim); @Override boolean remove(final ContentClaim claim); @Override ContentClaim clone(final ContentClaim original, final boolean lossTolerant); @Override long merge(final Collection<ContentClaim> claims, final ContentClaim destination, final byte[] header, final byte[] footer, final byte[] demarcator); @Override long importFrom(final Path content, final ContentClaim claim); @Override long importFrom(final InputStream content, final ContentClaim claim); @Override long exportTo(final ContentClaim claim, final Path destination, final boolean append); @Override long exportTo(final ContentClaim claim, final Path destination, final boolean append, final long offset, final long length); @Override long exportTo(final ContentClaim claim, final OutputStream destination); @Override long exportTo(final ContentClaim claim, final OutputStream destination, final long offset, final long length); @Override long size(final ContentClaim claim); @Override InputStream read(final ContentClaim claim); @Override OutputStream write(final ContentClaim claim); @Override void purge(); static Path getArchivePath(final Path contentClaimPath); @Override boolean isAccessible(final ContentClaim contentClaim); static final int SECTIONS_PER_CONTAINER; static final long MIN_CLEANUP_INTERVAL_MILLIS; static final String ARCHIVE_DIR_NAME; static final Pattern MAX_ARCHIVE_SIZE_PATTERN; }### Answer:
@Test public void testWrite() throws IOException { final ContentClaim claim = repository.create(true); final byte[] data = "The quick brown fox jumps over the lazy dog".getBytes(); try (final OutputStream out = repository.write(claim)) { out.write(data); } final Path path = getPath(claim); assertTrue(Arrays.equals(data, Files.readAllBytes(path))); }