### Question:
S3FileStore extends FileStore implements Comparable<S3FileStore> { @SuppressWarnings("unchecked") @Override public <V extends FileStoreAttributeView> V getFileStoreAttributeView(Class<V> type) { if (type != S3FileStoreAttributeView.class) throw new IllegalArgumentException("FileStoreAttributeView of type '" + type.getName() + "' is not supported."); Bucket buck = getBucket(); Owner owner = buck.getOwner(); return (V) new S3FileStoreAttributeView(buck.getCreationDate(), buck.getName(), owner.getId(), owner.getDisplayName()); } S3FileStore(S3FileSystem s3FileSystem, String name); @Override String name(); @Override String type(); @Override boolean isReadOnly(); @Override long getTotalSpace(); @Override long getUsableSpace(); @Override long getUnallocatedSpace(); @Override boolean supportsFileAttributeView(Class<? extends FileAttributeView> type); @Override boolean supportsFileAttributeView(String attributeViewName); @SuppressWarnings("unchecked") @Override V getFileStoreAttributeView(Class<V> type); @Override Object getAttribute(String attribute); S3FileSystem getFileSystem(); Bucket getBucket(); S3Path getRootDirectory(); Owner getOwner(); @Override int compareTo(S3FileStore o); @Override int hashCode(); @Override boolean equals(Object obj);  }### Answer:
@Test public void getFileStoreAttributeView() { S3FileStoreAttributeView fileStoreAttributeView = fileStore.getFileStoreAttributeView(S3FileStoreAttributeView.class); assertEquals("S3FileStoreAttributeView", fileStoreAttributeView.name()); assertEquals("bucket", fileStoreAttributeView.getAttribute(AttrID.name.name())); assertNotNull(fileStoreAttributeView.getAttribute(AttrID.creationDate.name())); assertEquals("Mock", fileStoreAttributeView.getAttribute(AttrID.ownerDisplayName.name())); assertEquals("1", fileStoreAttributeView.getAttribute(AttrID.ownerId.name())); }
@Test(expected = IllegalArgumentException.class) public void getUnsupportedFileStoreAttributeView() { fileStore.getFileStoreAttributeView(UnsupportedFileStoreAttributeView.class); }