@Test
public void putCategory() {

	webService.putCategory(transaction1.getId(), new CategoryModel("a category"));
	ArgumentCaptor<Transactions> transactionsCaptor = ArgumentCaptor.forClass(Transactions.class);
	verify(transactionsService).update(transactionsCaptor.capture());
	Transactions updated = transactionsCaptor.getValue();
	Transaction transaction = updated.getTransactions().get(0);
	assertEquals(transaction1, transaction);
	assertEquals(transaction1.getId(), transaction.getId());
	assertEquals("a category", transaction.getCategoryName());
}