Assert.assertNull("Failed to remove 'Account' with identifier '" + id + "'", accountService.findAccount(id));
}
@Test
public void testUpdateAccount() {
Account obj = dod.getRandomAccount();
Assert.assertNotNull("Data on demand for 'Account' failed to initialize correctly", obj);
Integer id = obj.getAccountid();
Assert.assertNotNull("Data on demand for 'Account' failed to provide an identifier", id);
obj = accountService.findAccount(id);
obj.setOpenbalance(new BigDecimal("1.1"));
accountService.updateAccount(obj);
accountRepository.flush();
Account updated = accountService.findAccount(id);
Assert.assertEquals("Update failed", new BigDecimal("1.1"), updated.getOpenbalance());
}