### Question:
ProductService { public static Product update(final Context context, final String number, final Product product) throws NetLicensingException { CheckUtils.paramNotEmpty(number, "number"); CheckUtils.paramNotNull(product, "product"); return NetLicensingService.getInstance().post(context, Constants.Product.ENDPOINT_PATH + "/" + number, product.asRequestForm(), Product.class); }  static Product create(final Context context, final Product product); static Product get(final Context context, final String number); static Page<Product> list(final Context context, final String filter); static Product update(final Context context, final String number, final Product product); static void delete(final Context context, final String number, final boolean forceCascade);  }### Answer:
@Test public void testUpdate() throws Exception { final Product product = new ProductImpl(); product.setName("Test Product"); product.setNumber("P002-TEST"); product.addProperty(PRODUCT_CUSTOM_PROPERTY, "Test Value"); product.addProperty(PRODUCT_DELETING_PROPERTY, ""); final Product updatedProduct = ProductService.update(context, "P001-TEST", product); assertNotNull(updatedProduct); assertEquals("Test Product", updatedProduct.getName()); assertEquals("P002-TEST", updatedProduct.getNumber()); assertEquals(false, updatedProduct.getActive()); assertEquals("v1.0", updatedProduct.getVersion()); assertEquals(true, updatedProduct.getLicenseeAutoCreate()); assertEquals("Test Value", updatedProduct.getProperties().get(PRODUCT_CUSTOM_PROPERTY)); assertNull(updatedProduct.getProperties().get(PRODUCT_DELETING_PROPERTY)); }