class UpdateInventoryRequest extends AbstractPutRequest<UpdateInventoryResponse> {

    @Override
    public String getBody() throws Exception {
        Set<String> properties = new HashSet<String>();
        for (String field : fields) {
            properties.add(field);
        }
        SimpleBeanPropertyFilter filter = new SimpleBeanPropertyFilter.FilterExceptFilter(properties);
        SimpleFilterProvider provider = new SimpleFilterProvider();
        provider.addFilter("update inventory request filter", filter);
        return mapper.writer(provider).writeValueAsString(inventory);
    }

    public  UpdateInventoryRequest(Inventory inventory, String... fields);

}