LocalModel { List<String> getContexts() { final Iterator<String> it = added.listNames(); final List<String> contexts = new ArrayList<>(); it.forEachRemaining(contexts::add); return contexts; } LocalModel(boolean defaultAsUnion);   }
@Test public void getContextReturnsEmptyListWhenNoNamedGraphsArePresent() { final List<String> contexts = localModel.getContexts(); assertNotNull(contexts); assertTrue(contexts.isEmpty()); }