@Test
public void testGenerateSelfSignedCertificate() throws Exception
{

    when( certificateData.getCommonName() ).thenReturn( "commonName" );
    when( certificateData.getOrganizationUnit() ).thenReturn( "organizationUnit" );
    when( certificateData.getOrganizationName() ).thenReturn( "organizationName" );
    when( certificateData.getCountry() ).thenReturn( "KG" );
    when( certificateData.getLocalityName() ).thenReturn( "localityName" );
    when( certificateData.getState() ).thenReturn( "Running" );
    when( certificateData.getEmail() ).thenReturn( "email" );
    certificateTool.generateSelfSignedCertificate( keyPair, certificateData );
}