### Question:
OssStorageResource implements WritableResource { @Override public File getFile() throws IOException { throw new UnsupportedOperationException( getDescription() + " cannot be resolved to absolute file path"); } OssStorageResource(OSS oss, String location,
                              ConfigurableListableBeanFactory beanFactory);  OssStorageResource(OSS oss, String location,
                              ConfigurableListableBeanFactory beanFactory, boolean autoCreateFiles); boolean isAutoCreateFiles(); @Override boolean exists(); @Override URL getURL(); @Override URI getURI(); @Override File getFile(); @Override long contentLength(); @Override long lastModified(); @Override Resource createRelative(String relativePath); @Override String getFilename(); @Override String getDescription(); @Override InputStream getInputStream(); Bucket getBucket(); boolean bucketExists(); OSSObject getOSSObject(); boolean isBucket(); Bucket createBucket(); @Override boolean isWritable(); @Override OutputStream getOutputStream();  }### Answer:
@Test public void testBucketFile() throws IOException { this.expectedEx.expect(UnsupportedOperationException.class); this.expectedEx.expectMessage( "oss: this.bucketResource.getFile(); }