/**
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.apache.commons.crypto.random;

import java.util.Properties;

public class TestOsCryptoRandom extends AbstractRandomTest {

    @Override
    public CryptoRandom getCryptoRandom() {
        return new OsCryptoRandom(new Properties());
    }
}

@@ -854,202 +854,767 @@
 ort 
-java.util.Properties;%0A%0Apublic class TestOsCryptoRandom extends AbstractRandomTest %7B%0A%0A    @Override%0A    public CryptoRandom getCryptoRandom() %7B%0A        return new OsCryptoRandom(new Properties())
+static org.junit.Assert.fail;%0A%0Aimport java.security.GeneralSecurityException;%0Aimport java.util.Properties;%0A%0Aimport org.apache.commons.crypto.conf.ConfigurationKeys;%0A%0Apublic class TestOsCryptoRandom extends AbstractRandomTest %7B%0A%0A    @Override%0A    public CryptoRandom getCryptoRandom() throws GeneralSecurityException %7B%0A        Properties props = new Properties();%0A        props.setProperty(%0A                ConfigurationKeys.SECURE_RANDOM_CLASSES_KEY,%0A                OsCryptoRandom.class.getName());%0A        CryptoRandom random = CryptoRandomFactory.getCryptoRandom(props);%0A        if (!(random instanceof OsCryptoRandom)) %7B%0A            fail(%22The CryptoRandom should be: %22%0A                    + OsCryptoRandom.class.getName());%0A        %7D%0A        return random
 ;%0A  

Check that class is instantiated correctly