@Test
public void testSimpleViews() {
assertViewUriEquivalent("dataset",
"dataset:file:/tmp/test_name", test);
assertViewUriEquivalent("to constraint",
"view:file:/tmp/test_name?timestamp=(,0]",
test.to("timestamp", 0L));
assertViewUriEquivalent("View with toBefore constraint",
"view:file:/tmp/test_name?timestamp=(,0)",
test.toBefore("timestamp", 0L));
assertViewUriEquivalent("View with from constraint",
"view:file:/tmp/test_name?timestamp=[0,)",
test.from("timestamp", 0L));
assertViewUriEquivalent("View with fromAfter constraint",
"view:file:/tmp/test_name?timestamp=(0,)",
test.fromAfter("timestamp", 0L));
assertViewUriEquivalent("View with in(\"\") constraint",
"view:file:/tmp/test_name?color=in()",
test.with("color", ""));
assertViewUriEquivalent("View with in constraint",
"view:file:/tmp/test_name?color=orange,red",
test.with("color", "orange", "red"));
assertViewUriEquivalent("View with exists constraint",
"view:file:/tmp/test_name?id=",
test.with("id"));
}