### Question:
LicenseService { public static License update(final Context context, final String number, final String transactionNumber, final License license) throws NetLicensingException { CheckUtils.paramNotEmpty(number, "number"); CheckUtils.paramNotNull(license, "license"); final Form form = license.asRequestForm(); if (StringUtils.isNotBlank(transactionNumber)) { form.param(Constants.Transaction.TRANSACTION_NUMBER, transactionNumber); } return NetLicensingService.getInstance().post(context, Constants.License.ENDPOINT_PATH + "/" + number, form, License.class); }  static License create(final Context context, final String licenseeNumber,
            final String licenseTemplateNumber,
            final String transactionNumber, final License license); static License get(final Context context, final String number); static Page<License> list(final Context context, final String filter); static License update(final Context context, final String number, final String transactionNumber,
            final License license); static void delete(final Context context, final String number, final boolean forceCascade);  }### Answer:
@Test public void testUpdate() throws Exception { final License license = new LicenseImpl(); license.setNumber("LC002-TEST"); license.setActive(false); license.setName("Updated Test License"); license.setPrice(new BigDecimal(20)); license.setHidden(true); license.addProperty(LICENSE_CUSTOM_PROPERTY, "New property value"); license.addProperty(LICENSE_DELETING_PROPERTY, ""); final License updatedLicense = LicenseService.update(context, "LC001-TEST", null, license); assertNotNull(updatedLicense); assertEquals("LC002-TEST", updatedLicense.getNumber()); assertEquals(false, updatedLicense.getActive()); assertEquals("Updated Test License", updatedLicense.getName()); assertEquals(new BigDecimal("15.00"), updatedLicense.getPrice()); assertEquals(Currency.EUR, updatedLicense.getCurrency()); assertEquals(true, updatedLicense.getHidden()); assertEquals("New property value", updatedLicense.getProperties().get(LICENSE_CUSTOM_PROPERTY)); assertNull(updatedLicense.getProperties().get(LICENSE_DELETING_PROPERTY)); }