* Test class UnmappableCharacterException.
*/
public class UnmappableCharacterExceptionTest extends TestCase {
public void testConstructor() {
UnmappableCharacterException ex = new UnmappableCharacterException(3);
assertTrue(ex instanceof CharacterCodingException);
assertNull(ex.getCause());
assertEquals(ex.getInputLength(), 3);
assertTrue(ex.getMessage().indexOf("3") != -1);
ex = new UnmappableCharacterException(-3);
assertNull(ex.getCause());
assertEquals(ex.getInputLength(), -3);
assertTrue(ex.getMessage().indexOf("-3") != -1);
ex = new UnmappableCharacterException(0);
assertNull(ex.getCause());
assertEquals(ex.getInputLength(), 0);
assertTrue(ex.getMessage().indexOf("0") != -1);
}