query.setPosition(Format.TIME, POSITION);
assertEquals("Incorrect position returned", POSITION, query.getPosition());
}
@Test
public void positionQueryToString() {
PositionQuery query = new PositionQuery(Format.TIME);
query.setPosition(Format.TIME, 1234);
String s = query.toString();
assertTrue("toString() did not return format", s.contains("format=TIME"));
assertTrue("toString() did not return position", s.contains("position=1234"));
}