@Test(dependsOnMethods = "createLinked")
public void queryWithRidStringAsParameters() {
database.getMetadata().getSchema().reload();
Profile profile = (Profile) database.browseClass("Profile").next();
OSQLSynchQuery<Profile> query = new OSQLSynchQuery<Profile>("select from Profile where @rid = ?");
List<Profile> result = database.query(query, profile.getId());
Assert.assertEquals(result.size(), 1);
// TEST WITHOUT # AS PREFIX
query = new OSQLSynchQuery<Profile>("select from Profile where @rid = ?");
result = database.query(query, profile.getId().substring(1));
Assert.assertEquals(result.size(), 1);
}