### Question:
ProductService { 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.Product.ENDPOINT_PATH + "/" + number, params); }  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 testDelete() throws Exception { ProductService.delete(context, "P001-TEST", true); thrown.expect(ServiceException.class); thrown.expectMessage("NotFoundException: Requested product does not exist"); ProductService.delete(context, "P001-NONE", false); }