@@ -0,0 +1,1379 @@
+package cz.scholz.aliaskeymanager;%0A%0Aimport org.testng.Assert;%0Aimport org.testng.annotations.Test;%0A%0Aimport java.security.Security;%0A%0A/**%0A * Created by schojak on 31.5.16.%0A */%0Apublic class AliasProviderTest %7B%0A    @Test%0A    public void testSetAlias()%0A    %7B%0A        AliasProvider.setAlias(%22myAlias%22);%0A        Assert.assertEquals(System.getProperty(%22cz.scholz.aliaskeymanager.alias%22), %22myAlias%22, %22System property was not properly set%22);%0A        AliasProvider.unSetAlias();%0A        Assert.assertNotEquals(System.getProperty(%22cz.scholz.aliaskeymanager.alias%22), %22myAlias%22, %22System property was not properly cleared%22);%0A    %7D%0A%0A    @Test%0A    public void testEnableProvider()%0A    %7B%0A        AliasProvider.enable();%0A        Assert.assertNotNull(Security.getProvider(%22aliaskm%22), %22The provide doesn't seem to exist%22);%0A%0A        AliasProvider.disable();%0A        Assert.assertNull(Security.getProvider(%22aliaskm%22), %22The provide doesn't seem to be disabled%22);%0A    %7D%0A%0A    @Test%0A    public void testSetAsDefaultProvider()%0A    %7B%0A        AliasProvider.setAsDefault();%0A        Assert.assertEquals(Security.getProperty(%22ssl.KeyManagerFactory.algorithm%22), %22aliaskm%22, %22The new key manager has been set as default%22);%0A%0A        AliasProvider.unsetAsDefault();%0A        Assert.assertNotEquals(Security.getProperty(%22ssl.KeyManagerFactory.algorithm%22), %22aliaskm%22, %22The new key manager is still the default%22);%0A    %7D%0A%7D%0A

Add tests for the AliasProvider