### Question:
StaticDataSource implements Provider<DataAccessObject>, Describable { public static StaticDataSource fromJSON(JsonNode object, URI base) { return fromJSON(null, object, base); } StaticDataSource();  StaticDataSource(String name); String getName(); void addSource(Collection<? extends Entity> data); void addSource(Collection<? extends Entity> data, Map<String,Object> metadata); void addSource(EntitySource source); void addIndex(EntityType type, TypedName<?> attr); void addDerivedEntity(EntityType derived, EntityType source, TypedName<Long> attr); void addDerivedEntity(EntityDerivation deriv); List<EntitySource> getSources(); @Nonnull List<EntitySource> getSourcesForType(EntityType type); @Override DataAccessObject get(); @Nullable PreferenceDomain getPreferenceDomain(); @Override String toString(); @Override void describeTo(DescriptionWriter writer); static StaticDataSource fromJSON(JsonNode object, URI base); static StaticDataSource fromJSON(String name, JsonNode object, URI base); static StaticDataSource load(Path path); static StaticDataSource load(Path path, String name); static StaticDataSource load(URI uri, String name); static StaticDataSource csvRatingFile(Path file); static StaticDataSource fromList(Collection<? extends Entity> entities);  }### Answer:
@Test public void testLoadInvalidDataSource() throws URISyntaxException, IOException { URI baseURI = TextEntitySourceTest.class.getResource("ratings.csv").toURI(); JsonNode node = reader.readTree("\"foobar\""); try { StaticDataSource daoProvider = StaticDataSource.fromJSON(node, baseURI); fail("JSON parsing succeeded, should have failed on string"); } catch (IllegalArgumentException e) { } }