// Path: src/test/java/com/github/vbauer/herald/core/BasicTest.java
// @RunWith(BlockJUnit4ClassRunner.class)
// public abstract class BasicTest {
// 
//     protected final void checkUtilConstructorContract(final Class<?> utilClass) {
//         PrivateConstructorChecker
//             .forClass(utilClass)
//             .expectedTypeOfException(UnsupportedOperationException.class)
//             .check();
//     }
// 
// }
// 
// Path: src/main/java/com/github/vbauer/herald/logger/LogFactory.java
// public interface LogFactory {
// 
//     /**
//      * Check if logger class is compatible with the log factory.
//      *
//      * @param loggerClass logger class
//      * @return true if compatible and false - otherwise
//      */
//     boolean isCompatible(Class<?> loggerClass);
// 
//     /**
//      * Create logger with the given name (as configuration parameter).
//      *
//      * @param name logger name
//      * @return logger instance
//      */
//     Object createLogger(String name);
// 
//     /**
//      * Create logger with the given class (as configuration parameter).
//      *
//      * @param clazz class
//      * @return logger instance
//      */
//     Object createLogger(Class<?> clazz);
// 
// }


import com.github.vbauer.herald.core.BasicTest;
import com.github.vbauer.herald.logger.LogFactory;
import org.junit.Test;
import java.util.Collection;
import static org.hamcrest.Matchers.hasSize;
import static org.junit.Assert.assertThat;
package com.github.vbauer.herald.util;




/**
 * @author Vladislav Bauer
 */

public class ServiceLoaderUtilsTest extends BasicTest {

    private static final int REAL_LOGGERS_COUNT = 11;
    private static final int TEST_LOGGERS_COUNT = 1;
    private static final int LOGGERS_COUNT = REAL_LOGGERS_COUNT + TEST_LOGGERS_COUNT;

    
    @Test
    public void testConstructorContract() throws Exception {
        checkUtilConstructorContract(ServiceLoaderUtils.class);
    }

    @Test
    public void testLoad() {
// Path: src/test/java/com/github/vbauer/herald/core/BasicTest.java
// @RunWith(BlockJUnit4ClassRunner.class)
// public abstract class BasicTest {
// 
//     protected final void checkUtilConstructorContract(final Class<?> utilClass) {
//         PrivateConstructorChecker
//             .forClass(utilClass)
//             .expectedTypeOfException(UnsupportedOperationException.class)
//             .check();
//     }
// 
// }
// 
// Path: src/main/java/com/github/vbauer/herald/logger/LogFactory.java
// public interface LogFactory {
// 
//     /**
//      * Check if logger class is compatible with the log factory.
//      *
//      * @param loggerClass logger class
//      * @return true if compatible and false - otherwise
//      */
//     boolean isCompatible(Class<?> loggerClass);
// 
//     /**
//      * Create logger with the given name (as configuration parameter).
//      *
//      * @param name logger name
//      * @return logger instance
//      */
//     Object createLogger(String name);
// 
//     /**
//      * Create logger with the given class (as configuration parameter).
//      *
//      * @param clazz class
//      * @return logger instance
//      */
//     Object createLogger(Class<?> clazz);
// 
// }


// Path: src/test/java/com/github/vbauer/herald/util/ServiceLoaderUtilsTest.java
import com.github.vbauer.herald.core.BasicTest;
import com.github.vbauer.herald.logger.LogFactory;
import org.junit.Test;
import java.util.Collection;
import static org.hamcrest.Matchers.hasSize;
import static org.junit.Assert.assertThat;

package com.github.vbauer.herald.util;




/**
 * @author Vladislav Bauer
 */

public class ServiceLoaderUtilsTest extends BasicTest {

    private static final int REAL_LOGGERS_COUNT = 11;
    private static final int TEST_LOGGERS_COUNT = 1;
    private static final int LOGGERS_COUNT = REAL_LOGGERS_COUNT + TEST_LOGGERS_COUNT;

    
    @Test
    public void testConstructorContract() throws Exception {
        checkUtilConstructorContract(ServiceLoaderUtils.class);
    }

    @Test
    public void testLoad() {
        final Collection<LogFactory> factories = ServiceLoaderUtils.load(LogFactory.class);