*
* @throws DecoderException problem
*/
@Test
public void testDecoder() throws DecoderException {
final Decoder dec = new Base64();
for (int i = 0; i < STRINGS.length; i++) {
if (STRINGS[i] != null) {
final byte[] base64 = utf8(STRINGS[i]);
final byte[] binary = BYTES[i];
final boolean b = Arrays.equals(binary, (byte[]) dec.decode(base64));
assertTrue("Decoder test-" + i, b);
}
}
}