### Question:
ProductModuleService { 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.ProductModule.ENDPOINT_PATH + "/" + number, params); }  static ProductModule create(final Context context, final String productNumber,
            final ProductModule productModule); static ProductModule get(final Context context, final String number); static Page<ProductModule> list(final Context context, final String filter); static ProductModule update(final Context context, final String number, final ProductModule productModule); static void delete(final Context context, final String number, final boolean forceCascade);  }### Answer:
@Test public void testDelete() throws Exception { ProductModuleService.delete(context, "PM001-TEST", true); thrown.expect(ServiceException.class); thrown.expectMessage("NotFoundException: Requested product module does not exist"); ProductModuleService.delete(context, "PM001-NONE", false); }