// Path: src/main/java/be/fror/common/resource/ResourceLoaders.java
// public static ResourceLoader<Properties> propertiesLoader() {
//   return InputStreamPropertiesLoader.PROPERTIES;
// }


import static be.fror.common.resource.ResourceLoaders.propertiesLoader;
import static java.nio.charset.StandardCharsets.UTF_8;
import static java.util.stream.Collectors.toList;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.fail;
import org.hamcrest.BaseMatcher;
import org.hamcrest.Description;
import org.hamcrest.Matcher;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import java.io.IOException;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.List;
import java.util.Properties;
import java.util.concurrent.atomic.AtomicInteger;
  public void setUp() throws IOException {
    instance = new ResourceLocator.Builder()
        .addClassLoader((URLClassLoader) ResourceLocatorTest.class.getClassLoader())
        .build();
  }

  @After
  public void tearDown() {
  }

  /**
   * Test of locateResources method, of class ResourceLocator.
   */
  @Test
  public void testLocateResources_String() {
    List<URL> urls = instance.locateResources("books/*.properties").collect(toList());
    assertThat(urls.size(), is(2));
  }

  /**
   * Test of locateResources method, of class ResourceLocator.
   */
  @Test
  public void testLocateResources_Predicate() {

  }

  @Test
  public void testGetResources_String() {
    Properties agot = instance
// Path: src/main/java/be/fror/common/resource/ResourceLoaders.java
// public static ResourceLoader<Properties> propertiesLoader() {
//   return InputStreamPropertiesLoader.PROPERTIES;
// }


// Path: src/test/java/be/fror/common/resource/ResourceLocatorTest.java
import static be.fror.common.resource.ResourceLoaders.propertiesLoader;
import static java.nio.charset.StandardCharsets.UTF_8;
import static java.util.stream.Collectors.toList;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.fail;
import org.hamcrest.BaseMatcher;
import org.hamcrest.Description;
import org.hamcrest.Matcher;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import java.io.IOException;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.List;
import java.util.Properties;
import java.util.concurrent.atomic.AtomicInteger;

  public void setUp() throws IOException {
    instance = new ResourceLocator.Builder()
        .addClassLoader((URLClassLoader) ResourceLocatorTest.class.getClassLoader())
        .build();
  }

  @After
  public void tearDown() {
  }

  /**
   * Test of locateResources method, of class ResourceLocator.
   */
  @Test
  public void testLocateResources_String() {
    List<URL> urls = instance.locateResources("books/*.properties").collect(toList());
    assertThat(urls.size(), is(2));
  }

  /**
   * Test of locateResources method, of class ResourceLocator.
   */
  @Test
  public void testLocateResources_Predicate() {

  }

  @Test
  public void testGetResources_String() {
    Properties agot = instance
        .loadResources("books/a_game_of_thrones.properties", propertiesLoader(UTF_8))