@Test
public void testCalcFingerprintString() {

    // these should pass
    assertEquals(fdroidFingerprint, Utils.calcFingerprint(fdroidPubkey));
    assertEquals(gpRepoFingerprint, Utils.calcFingerprint(gpRepoPubkey));
    assertEquals(gpTest0Fingerprint, Utils.calcFingerprint(gpTest0Pubkey));
    assertEquals(gpTest1Fingerprint, Utils.calcFingerprint(gpTest1Pubkey));
    // these should fail
    assertFalse(gpRepoFingerprint.equals(
            Utils.calcFingerprint(fdroidPubkey)));
    assertFalse(gpTest0Fingerprint.equals(
            Utils.calcFingerprint(fdroidPubkey)));
    assertFalse(gpTest1Fingerprint.equals(
            Utils.calcFingerprint(fdroidPubkey)));
    assertFalse(fdroidFingerprint.equals(
            Utils.calcFingerprint(gpRepoPubkey)));
    assertFalse(gpTest0Fingerprint.equals(
            Utils.calcFingerprint(gpRepoPubkey)));
    assertFalse(gpTest1Fingerprint.equals(
            Utils.calcFingerprint(gpRepoPubkey)));
    assertFalse(fingerprintShortByOneFingerprint.equals(
            Utils.calcFingerprint(fingerprintShortByOnePubkey)));
    assertFalse(fingerprintLongByOneFingerprint.equals(
            Utils.calcFingerprint(fingerprintLongByOnePubkey)));
    try {
        assertFalse(pubkeyShortByOneFingerprint.equals(
                Utils.calcFingerprint(pubkeyShortByOnePubkey)));
    } catch (ArrayIndexOutOfBoundsException e) {
        assertTrue(true); // we should get this Exception!
    }
    try {
        assertFalse(pubkeyLongByOneFingerprint.equals(
                Utils.calcFingerprint(pubkeyLongByOnePubkey)));
    } catch (ArrayIndexOutOfBoundsException e) {
        assertTrue(true); // we should get this Exception!
    }
}