EntityResourceDefinition extends BaseResourceDefinition { @Override public void validateCreatePayload(Request request) throws InvalidPayloadException { } EntityResourceDefinition(); @Override String getIdPropertyName(); @Override String getTypeName(); @Override void validateCreatePayload(Request request); @Override String resolveHref(Map<String, Object> properties);  }
@Test public void testValidate() throws Exception { Request request = new InstanceRequest(Collections.<String, Object>emptyMap()); ResourceDefinition entityDefinition = new EntityResourceDefinition(); entityDefinition.validateCreatePayload(request); }