.addProjection(new PropertyProjection("percent", Double.class))
.addProjection(new PropertyProjection("x", Double.class))
.addProjection(new PropertyProjection("diff", Long.class));
PreparedQuery preparedQuery = service.prepare(query);
Entity result = preparedQuery.asSingleEntity();
assertEquals(e.getKey(), result.getKey());
assertEquals(e.getProperty("price"), result.getProperty("price"));
assertEquals(e.getProperty("percent"), result.getProperty("percent"));
assertEquals(e.getProperty("x"), result.getProperty("x"));
assertEquals(e.getProperty("diff"), result.getProperty("diff"));