FingerprintDecryptionResult extends FingerprintAuthenticationResult { public String getDecrypted() { return new String(getDecryptedChars()); } FingerprintDecryptionResult(FingerprintResult result, String message, char[] decrypted); String getDecrypted(); char[] getDecryptedChars();  }
@Test(expected = IllegalAccessError.class) public void getResultFailure() throws Exception { String message = "some error happened"; FingerprintDecryptionResult result = new FingerprintDecryptionResult(FingerprintResult.FAILED, message, null); assertEquals(message, result.getMessage()); result.getDecrypted(); }
@Test(expected = IllegalAccessError.class) public void getResultHelp() throws Exception { String message = "help"; FingerprintDecryptionResult result = new FingerprintDecryptionResult(FingerprintResult.HELP, message, null); assertEquals(message, result.getMessage()); result.getDecrypted(); }