@Test
public void testKeyIsAValidPrivateKey() throws Exception {

    final String msg = /* this tests that the */ "Private key defined in property files" /* is valid */;
    final byte[] fossologyPrivateKey = fossologySettings.getFossologyPrivateKey();
    assertThat(msg + "is not readable",
            fossologyPrivateKey, notNullValue());
    assertThat(msg + "is empty",
            fossologyPrivateKey.length, is(greaterThan(0)));
    try {
        final JSch jSch = new JSch();
        jSch.addIdentity("test", fossologyPrivateKey, null, null);
    } catch (Exception e) {
        fail(msg + "is not a valid private key");
    }
}