.withProperty("weight", 10L)
.store();
Query query = new Query("Product")
.setAncestor(key)
.addProjection(new PropertyProjection("price", Long.class))
.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"));