@@ -0,0 +1,755 @@
+package ie.omk.smpp.encoding;%0A%0Aimport ie.omk.smpp.SMPPRuntimeException;%0A%0Aimport java.io.UnsupportedEncodingException;%0A%0Aimport org.testng.annotations.Test;%0A%0A@Test%0Apublic class AlphabetEncodingSetCharsetTest %7B%0A%0A    @Test(expectedExceptions = %7BSMPPRuntimeException.class%7D)%0A    public void testResettingCharsetThrowsException() throws Exception %7B%0A        class TestEncoding extends AlphabetEncoding %7B%0A            TestEncoding() throws UnsupportedEncodingException %7B%0A                super(Integer.MAX_VALUE);%0A                setCharset(%22US-ASCII%22);%0A            %7D%0A            %0A            void resetCharset() throws UnsupportedEncodingException %7B%0A                setCharset(%22Latin-1%22);%0A            %7D%0A        %7D%0A        new TestEncoding().resetCharset();%0A    %7D%0A%7D%0A

Test to ensure resetting charset is not possible.