### Question:
SystemParameterResource { @RobeService(group = "SystemParameter", description = "Create or update SystemParameter resource.") @POST @Path("admin") @UnitOfWork public Map<String, String> bulkSaveOrUpdate(Map<String, String> values) { for (Map.Entry<String, String> entry : values.entrySet()) { Optional<SystemParameter> optionalParameter = systemParameterDao.findByKey(entry.getKey()); SystemParameter parameter; if (!optionalParameter.isPresent()) { parameter = new SystemParameter(); parameter.setKey(entry.getKey()); parameter.setValue(entry.getValue()); } else { parameter = optionalParameter.get(); parameter.setValue(entry.getValue()); } systemParameterDao.update(parameter); } return values; }  @RobeService(group = "SystemParameter", description = "Returns all SystemParameter as a collection.") @GET @UnitOfWork(readOnly = true, cacheMode = GET, flushMode = FlushMode.MANUAL) List<SystemParameter> getAll(@RobeAuth Credentials credentials, @SearchParam SearchModel search); @RobeService(group = "SystemParameter", description = "Return SystemParameter resource.") @Path("{id}") @GET @UnitOfWork(readOnly = true, cacheMode = CacheMode.GET, flushMode = FlushMode.MANUAL) SystemParameter get(@RobeAuth Credentials credentials, @PathParam("id") String id); @RobeService(group = "SystemParameter", description = "Create SystemParameter resource and return given SystemParameter path link at header Location=example/{id].") @POST @UnitOfWork SystemParameter create(@RobeAuth Credentials credentials, @Valid SystemParameter model); @RobeService(group = "SystemParameter", description = "Create or update SystemParameter resource.") @POST @Path("admin") @UnitOfWork Map<String, String> bulkSaveOrUpdate(Map<String, String> values); @RobeService(group = "SystemParameter", description = "Update SystemParameter resource and matches with the given id.") @Path("{id}") @PUT @UnitOfWork SystemParameter update(@RobeAuth Credentials credentials, @PathParam("id") String id, @Valid SystemParameter model); @RobeService(group = "SystemParameter", description = "Update SystemParameter resource.") @Path("{id}") @PATCH @UnitOfWork SystemParameter merge(@RobeAuth Credentials credentials, @PathParam("id") String id, SystemParameter model); @RobeService(group = "SystemParameter", description = "Delete SystemParameter resource.") @Path("{id}") @DELETE @UnitOfWork SystemParameter delete(@RobeAuth Credentials credentials, @PathParam("id") String id, @Valid SystemParameter model);  }### Answer:
@Test public void bulkSaveOrUpdate() throws Exception { SystemParameter parameter = super.createFrom(); Map<String, String> values = new HashMap<>(); values.put("KEY", "VALUE_CHANGED"); values.put("KEY2", "VALUE-2"); TestRequest request = getRequestBuilder().endpoint("admin").entity(values).build(); TestResponse response = client.post(request); Map result = response.get(Map.class); Assert.assertTrue(result.size() == 2); super.deleteFrom(parameter); }