@@ -0,0 +1,850 @@
+/*******************************************************************************%0A * Copyright (c) 2017 Martin Weber.%0A *%0A * Contributors:%0A *      Martin Weber - Initial implementation%0A *******************************************************************************/%0Apackage net.schmizz.sshj.common;%0A%0Aimport static org.junit.Assert.*;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport net.schmizz.sshj.SSHClient;%0A%0A/**%0A * @author Martin Weber%0A */%0Apublic class SecurityUtilsTest %7B%0A%0A  @Before%0A  public void setUp() throws Exception %7B%0A  %7D%0A%0A  @Test%0A  public final void testBouncyCastleProvider() %7B%0A    SecurityUtils.setRegisterBouncyCastle(true);%0A    // trigger a net.schmizz.sshj.common.SSHRuntimeException caused by%0A    // a ClassNotFoundException: org.bouncycastle.jce.provider.BouncyCastleProvider%0A    SecurityUtils.getSecurityProvider();%0A  %7D%0A%0A%7D%0A

Test for sshj#255 (BouncyCastleProvider)