### Question:
RestEntityServiceBase extends RestServiceBase { @POST @Path("/") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public Object create(@AuditContent Map<String, Object> data) { String id = entityService.create(data); return createResponseWithId(id); }  @GET @Path("/") @Produces(MediaType.APPLICATION_JSON) @AuditIgnore Object getAll(@QueryParam("from") Integer from, @QueryParam("size") Integer size); @GET @Path("/{id}") @Produces(MediaType.APPLICATION_JSON) @AuditIgnore Object get(@PathParam("id") @AuditId String id); @POST @Path("/") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Object create(@AuditContent Map<String, Object> data); @POST @Path("/{id}") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Object create(@PathParam("id") @AuditId String id, @AuditContent Map<String, Object> data); @DELETE @Path("/{id}") Object delete(@PathParam("id") @AuditId String id);  }### Answer:
@Test(expected = RequiredFieldException.class) public void create_id_inputParamValidation_1() { RestEntityServiceBase tested = getTested(); Map<String, Object> m = new HashMap<String, Object>(); TestUtils.assertResponseStatus(tested.create(null, m), Status.BAD_REQUEST); }
@Test(expected = RequiredFieldException.class) public void create_id_inputParamValidation_2() { RestEntityServiceBase tested = getTested(); Map<String, Object> m = new HashMap<String, Object>(); TestUtils.assertResponseStatus(tested.create("", m), Status.BAD_REQUEST); }