### Question:
SslPolicyLoader { public static SslPolicyLoader create( Config config, LogProvider logProvider ) { SslPolicyLoader policyFactory = new SslPolicyLoader( config, logProvider ); policyFactory.load( config, logProvider.getLog( SslPolicyLoader.class ) ); return policyFactory; } private  SslPolicyLoader( Config config, LogProvider logProvider ); static SslPolicyLoader create( Config config, LogProvider logProvider ); SslPolicy getPolicy( String policyName );  }### Answer:
@Test public void shouldNotAllowLegacyPolicyToBeConfigured() { Map<String,String> params = stringMap(); SslPolicyConfig policyConfig = new SslPolicyConfig( LegacySslPolicyConfig.LEGACY_POLICY_NAME ); params.put( neo4j_home.name(), home.getAbsolutePath() ); params.put( policyConfig.base_directory.name(), "certificates/default" ); Config config = Config.defaults( params ); try { SslPolicyLoader.create( config, NullLogProvider.getInstance() ); fail(); } catch ( IllegalArgumentException e ) { } }