package net.kencochrane.raven;

import org.testng.annotations.Test;

import java.util.ServiceLoader;

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

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

        assertThat(ravenFactories, contains(instanceOf(DefaultRavenFactory.class)));
    }
}

@@ -25,16 +25,46 @@
 raven;%0A%0A
+import org.hamcrest.Matchers;%0A
 import o
@@ -91,16 +91,16 @@
 s.Test;%0A
-
 %0Aimport 
@@ -182,54 +182,8 @@
 at;%0A
-import static org.hamcrest.Matchers.contains;%0A
 impo
@@ -327,16 +327,17 @@
 actory()
+ 
 %7B%0A      
@@ -463,16 +463,38 @@
 es, 
-contains
+Matchers.%3CRavenFactory%3EhasItem
 (ins

Use hasItem rather than contains