@Test
public void testOpen() throws IOException {

  final byte[] bytes = randomUUID().toString().getBytes();
  final FileContent fileContent = new FileContent(
      randomUUID().toString(),
      () -> new ByteArrayInputStream(bytes));
  try (InputStream in = fileContent.open()) {
    assertArrayEquals(bytes, from(in));
  }
}