FileDataSourceId implements CharSequence { public static FileDataSourceId parse(CharSequence input) { return input instanceof FileDataSourceId ? (FileDataSourceId) input : parse(input.toString()); } private  FileDataSourceId(LinearIdBuilder id); static FileDataSourceId parse(CharSequence input); static FileDataSourceId parse(String input); static FileDataSourceId from(File file); T fill(T bean); String getFile(); String getFileName(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); @Override int length(); @Override char charAt(int index); @Override CharSequence subSequence(int start, int end); static Parser<DataSource> legacyParser(final String providerName, final String version);  }
@Test public void testDemetraUri() { String input = DataSource.uriFormatter().formatAsString(DataSource.of("p", "123")); assertThat(FileDataSourceId.parse(input)).isNull(); }