package net.kencochrane.raven;

import org.hamcrest.Matchers;
import org.testng.annotations.Test;

import java.util.ServiceLoader;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.instanceOf;

public class DefaultRavenFactoryTest {
    @Test
    public void checkServiceLoaderProvidesFactory() throws Exception {
        ServiceLoader<RavenFactory> ravenFactories = ServiceLoader.load(RavenFactory.class);

        assertThat(ravenFactories, Matchers.<RavenFactory>hasItem(instanceOf(DefaultRavenFactory.class)));
    }
}

@@ -29,38 +29,8 @@
 n;%0A%0A
-import org.hamcrest.Matchers;%0A
 impo
@@ -148,16 +148,62 @@
 rtThat;%0A
+import static org.hamcrest.Matchers.contains;%0A
 import s
@@ -496,38 +496,16 @@
 es, 
-Matchers.%3CRavenFactory%3EhasItem
+contains
 (ins

Fix RavenFactoryTest to match the servlet test