LocalModel { Containment contains(Resource subject, Property property, RDFNode value, String context) { final Model removedModel = context != null ? removed.getNamedModel(context) : removedDefault(); final Model addedModel = context != null ? added.getNamedModel(context) : addedDefault(); if (removedModel.contains(subject, property, value)) { return Containment.REMOVED; } else { return addedModel.contains(subject, property, value) ? Containment.ADDED : Containment.UNKNOWN; } } LocalModel(boolean defaultAsUnion);   }
@Test public void containsReturnsUnknownForStatementNotInLocalModel() { assertEquals(LocalModel.Containment.UNKNOWN, localModel.contains(createResource(SUBJECT), null, createResource(TYPE_ONE), null)); }