### Question:
PatchObject { public String getOperation() throws PatchParserException { if (op != null) { return op; } else { throw new PatchParserException("No operation was found"); } } PatchObject(); static boolean isBlankNodeUri(String objectValue); void setSubject(String uri); String getSubject(); void setPredicate(String pred); String getPredicate(); void setObjectValue(String obj); Map<String, String> getObject(); void setObject(Map<String, String> object2); String getObjectValue(); String getObjectDatatype(); String getObjectLanguage(); void setOperation(String operation2); String getOperation(); Patch toPatch(Map<String, RDFNode> blankNodes); Patch toPatch();  }### Answer:
@Test(expected = PatchParserException.class) public void test_getting_null_operation_fails() throws PatchParserException{ new PatchObject().getOperation(); }