### Question:
S3SelectAccessor extends BasePlugin implements Accessor { @Override public void closeForWrite() { throw new UnsupportedOperationException("S3 Select does not support writing"); }  @Override void initialize(RequestContext requestContext); @Override boolean openForRead(); @Override OneRow readNextObject(); @Override void closeForRead(); @Override boolean openForWrite(); @Override boolean writeNextObject(OneRow onerow); @Override void closeForWrite(); static final String COMPRESSION_TYPE; static final String FILE_HEADER_INFO; static final String FILE_HEADER_INFO_NONE; static final String FILE_HEADER_INFO_IGNORE; static final String FILE_HEADER_INFO_USE; static final String JSON_TYPE; }### Answer:
@Test public void testFailsOnCloseForWrite() { thrown.expect(UnsupportedOperationException.class); thrown.expectMessage("S3 Select does not support writing"); new S3SelectAccessor().closeForWrite(); }