### Question:
DefaultFileContent implements FileContent { @Override public OutputStream getOutputStream() throws FileSystemException { return getOutputStream(false); } DefaultFileContent(final AbstractFileObject file, final FileContentInfoFactory fileContentInfoFactory); @Override FileObject getFile(); @Override long getSize(); @Override long getLastModifiedTime(); @Override void setLastModifiedTime(final long modTime); @Override boolean hasAttribute(final String attrName); @Override Map<String, Object> getAttributes(); void resetAttributes(); @Override String[] getAttributeNames(); @Override Object getAttribute(final String attrName); @Override void setAttribute(final String attrName, final Object value); @Override void removeAttribute(final String attrName); @Override Certificate[] getCertificates(); @Override InputStream getInputStream(); @Override InputStream getInputStream(final int bufferSize); @Override RandomAccessContent getRandomAccessContent(final RandomAccessMode mode); @Override OutputStream getOutputStream(); @Override OutputStream getOutputStream(final boolean bAppend); @Override OutputStream getOutputStream(final int bufferSize); @Override OutputStream getOutputStream(final boolean bAppend, final int bufferSize); @Override void close(); @Override boolean isOpen(); boolean isOpenGlobal(); @Override FileContentInfo getContentInfo(); @Override long write(final FileContent fileContent); @Override long write(final FileObject file); @Override long write(final OutputStream output); @Override long write(final OutputStream output, final int bufferSize);  }### Answer:
@Test(expected = IllegalArgumentException.class) public void testOutputStreamBufferSizeNegativeWithAppendFlag() throws Exception { final File temp = File.createTempFile("temp-file-name", ".tmp"); final FileSystemManager fileSystemManager = VFS.getManager(); try (FileObject file = fileSystemManager.resolveFile(temp.getAbsolutePath())) { file.getContent().getOutputStream(true, -1); } }