@Test
public void testDecompressedStream() throws Exception {
DefaultCodec codec = new DefaultCodec();
codec.setConf(fs.getConf());
String name = "local/" + UUID.randomUUID() + codec.getDefaultExtension();
OutputStream outputStream = codec.createOutputStream(fs.create(new Path(name)));
byte[] content = name.getBytes();
outputStream.write(content);
outputStream.close();
Resource resource = loader.getResource(name);