@Test
public void testMalformedData() {

  try {
    schemeDataDataSource.open(buildDataSpec("data:text/plain;base64,,This%20is%20Content"));
    fail();
  } catch (IOException e) {
    // Expected.
  }
  try {
    schemeDataDataSource.open(buildDataSpec("data:text/plain;base64,IncorrectPadding=="));
    fail();
  } catch (IOException e) {
    // Expected.
  }
}