@Test
public void testParse() {
assertNull(amountParser.parse(null));
Amount amount = new Amount();
assertEquals(amountParser.parse(amount), amount);
amount.setCurrency(new Currency());
amount.getCurrency().setId(new UUID("000000aa000000aa000000aa000000aa"));
assertEquals(amountParser.parse(amount), amount);
Amount amount2 = new Amount();
amount2.setCurrency(new Currency());
amount2.getCurrency().setCurrency(java.util.Currency.getInstance("USD"));
assertNotNull(amountParser.parse(amount2).getCurrency().getId());
}