### Question:
BinaryObject extends RepositoryObject { public String getFilename() throws FedoraException { if (filename == null) { Statement property = getResource().getProperty(Ebucore.filename); if (property != null) { filename = property.getString(); } } return filename; } protected  BinaryObject(PID pid, RepositoryObjectDriver driver,
            RepositoryObjectFactory repoObjFactory); protected  BinaryObject(PID pid, URI contentUri, RepositoryObjectDriver driver,
            RepositoryObjectFactory repoObjFactory); @Override BinaryObject validateType(); @Override RepositoryObject getParent(); InputStream getBinaryStream(); URI getContentUri(); @Override URI getMetadataUri(); String getFilename(); void setFilename(String filename); String getMimetype(); void setMimetype(String mimetype); String getSha1Checksum(); String getMd5Checksum(); void setSha1Checksum(String sha1); void setMd5Checksum(String md5); Long getFilesize(); void setFilesize(Long filesize);  }### Answer:
@Test public void testGetFilename() { resource.addProperty(Ebucore.filename, "example.txt"); assertEquals("example.txt", binObj.getFilename()); binObj.setFilename("sample.txt"); assertEquals("sample.txt", binObj.getFilename()); }