TicketException t = new InvalidTicketException();
assertEquals("INVALID_TICKET", t.getCode());
}
public void testCodeWithThrowable() {
AuthenticationException a = new BadCredentialsAuthenticationException();
TicketException t = new InvalidTicketException(a);
assertEquals(a.toString(), t.getCode());
}