/**
* Test of getPassword method, of class Codec.
*/
public void testGetPassword() throws Exception {
String original = "kslater:mypassword";
String b64 = new CodecImpl().encodeBase64(original);
assertTrue(new CodecImpl().getPassword(b64).equals("mypassword"));
/* with strange strings */
original = "kslater:";
b64 = new CodecImpl().encodeBase64(original);
assertTrue(new CodecImpl().getPassword(b64).equals(""));
original = "kslater: ";
b64 = new CodecImpl().encodeBase64(original);
assertTrue(new CodecImpl().getPassword(b64).equals(" "));
original = ": ";
b64 = new CodecImpl().encodeBase64(original);
assertTrue(new CodecImpl().getPassword(b64).equals(" "));
original = "kslater: dsfk:";
b64 = new CodecImpl().encodeBase64(original);
assertTrue(new CodecImpl().getPassword(b64).equals(" dsfk:"));
}