### Question:
LicenseeService { public static Licensee create(final Context context, final String productNumber, final Licensee licensee) throws NetLicensingException { CheckUtils.paramNotNull(licensee, "licensee"); final Form form = licensee.asRequestForm(); if (StringUtils.isNotBlank(productNumber)) { form.param(Constants.Product.PRODUCT_NUMBER, productNumber); } return NetLicensingService.getInstance().post(context, Constants.Licensee.ENDPOINT_PATH, form, Licensee.class); }  static Licensee create(final Context context, final String productNumber, final Licensee licensee); static Licensee get(final Context context, final String number); static Page<Licensee> list(final Context context, final String filter); static Licensee update(final Context context, final String number, final Licensee licensee); static void delete(final Context context, final String number, final boolean forceCascade); @Deprecated static ValidationResult validate(final Context context, final String number, final String productNumber,
            final String licenseeName, final ValidationParameters validationParameters, final MetaInfo... meta); static ValidationResult validate(final Context context, final String number,
            final ValidationParameters validationParameters, final MetaInfo... meta); static void transfer(final Context context, final String number, final String sourceLicenseeNumber);  }### Answer:
@Test public void testCreate() throws Exception { final Licensee newLicensee = new LicenseeImpl(); newLicensee.setNumber(licenseeNumber); newLicensee.setActive(false); final Licensee createdLicensee = LicenseeService.create(context, productNumber, newLicensee); assertNotNull(createdLicensee); assertEquals(licenseeNumber, createdLicensee.getNumber()); assertEquals(false, createdLicensee.getActive()); assertEquals(productNumber, createdLicensee.getProduct().getNumber()); }
@Test public void testCreateEmpty() throws Exception { final Licensee newLicensee = new LicenseeImpl(); final Licensee createdLicensee = LicenseeService.create(context, productNumber, newLicensee); assertNotNull(createdLicensee); assertEquals(true, createdLicensee.getActive()); assertEquals(productNumber, createdLicensee.getProduct().getNumber()); }
@Test public void testCreateWithoutProductNumber() throws Exception { thrown.expect(ServiceException.class); thrown.expectMessage("MalformedRequestException: Product number is not provided"); LicenseeService.create(context, null, new LicenseeImpl()); }