PseudoOtp { public static byte[] encrypt(byte[] message, byte[] keyCandidate) { return encrypt(message, keyCandidate, message.length); } private  PseudoOtp(); static byte[] encrypt(byte[] message, byte[] keyCandidate); static byte[] encrypt(byte[] message, byte[] keyCandidate, int messageLength); static byte[] decrypt(byte[] cipherText, byte[] keyCandidate); static byte[] decrypt(byte[] cipherText, byte[] keyCandidate, int messageLength);  }
@Test (expected = NullPointerException.class) public void testEncryptNullMessage() { PseudoOtp.encrypt(null, new byte[] { 0x00 }); }
@Test (expected = NullPointerException.class) public void testEncryptNullCandidate() { PseudoOtp.encrypt(new byte[] { 0x00 }, null); }
@Test (expected = NullPointerException.class) public void testDecryptNullCandidate() { PseudoOtp.encrypt(new byte[] { 0x00 }, null); }