InstanceRequest extends BaseRequest { @Override public Cardinality getCardinality() { return Cardinality.INSTANCE; } InstanceRequest(Map<String, Object> queryProperties);  InstanceRequest(Map<String, Object> queryProperties, Map<String, Object> updateProperties); @Override Cardinality getCardinality();  }
@Test public void testRequestProperties() { Map<String, Object> properties = new HashMap<>(); properties.put("foo", "fooValue"); properties.put("someBoolean", true); Request request = new InstanceRequest(properties); assertEquals(Request.Cardinality.INSTANCE, request.getCardinality()); assertEquals(properties, request.getQueryProperties()); assertEquals("fooValue", request.getProperty("foo")); assertTrue(request.<Boolean>getProperty("someBoolean")); assertNull(request.getProperty("other")); assertTrue(request.getAdditionalSelectProperties().isEmpty()); }