### Question:
LicenseTemplateService { public static void delete(final Context context, final String number, final boolean forceCascade) throws NetLicensingException { CheckUtils.paramNotEmpty(number, "number"); final Map<String, Object> params = new HashMap<String, Object>(); params.put(Constants.CASCADE, forceCascade); NetLicensingService.getInstance().delete(context, Constants.LicenseTemplate.ENDPOINT_PATH + "/" + number, params); }  static LicenseTemplate create(final Context context, final String productModuleNumber,
            final LicenseTemplate licenseTemplate); static LicenseTemplate get(final Context context, final String number); static Page<LicenseTemplate> list(final Context context, final String filter); static LicenseTemplate update(final Context context, final String number,
            final LicenseTemplate licenseTemplate); static void delete(final Context context, final String number, final boolean forceCascade);  }### Answer:
@Test public void testDelete() throws Exception { LicenseTemplateService.delete(context, "LT001-TEST", true); thrown.expect(ServiceException.class); thrown.expectMessage("NotFoundException: Requested license template does not exist"); LicenseTemplateService.delete(context, "PM001-NONE", false); }