### Question:
TransactionService { public static Transaction update(final Context context, final String number, final Transaction transaction) throws NetLicensingException { CheckUtils.paramNotEmpty(number, "number"); CheckUtils.paramNotNull(transaction, "transaction"); return NetLicensingService.getInstance().post(context, Constants.Transaction.ENDPOINT_PATH + "/" + number, transaction.asRequestForm(), Transaction.class); }  static Transaction create(final Context context, final Transaction transaction); static Transaction get(final Context context, final String number); static Page<Transaction> list(final Context context, final String filter); static Transaction update(final Context context, final String number, final Transaction transaction);  }### Answer:
@Test public void testUpdate() throws Exception { final Transaction transaction = new TransactionImpl(); transaction.setNumber("TR002TEST"); transaction.setSource(TransactionSource.SHOP); transaction.setStatus(TransactionStatus.CLOSED); transaction.addProperty(TRANSACTION_CUSTOM_PROPERTY, "New property value"); transaction.addProperty(TRANSACTION_DELETING_PROPERTY, ""); final Transaction createdTransaction = TransactionService.update(context, "TR001TEST", transaction); assertNotNull(createdTransaction); assertEquals("TR002TEST", createdTransaction.getNumber()); assertEquals(TransactionSource.AUTO_LICENSE_CREATE, createdTransaction.getSource()); assertEquals(TransactionStatus.CLOSED, createdTransaction.getStatus()); assertEquals(true, createdTransaction.getActive()); assertEquals("New property value", createdTransaction.getProperties().get(TRANSACTION_CUSTOM_PROPERTY)); assertNull(createdTransaction.getProperties().get(TRANSACTION_DELETING_PROPERTY)); }