package no.finn.unleash.example;

import no.finn.unleash.repository.FeatureToggleRepository;
import no.finn.unleash.repository.ToggleRepository;
import no.finn.unleash.UnleashImpl;
import org.junit.Test;

import java.net.URI;

import static org.junit.Assert.assertFalse;

public class UnleashUsageTest {

    @Test
    public void wire() {
        ToggleRepository repository = new FeatureToggleRepository(URI.create("http://localhost:4242/features"), 1);

        UnleashImpl unleash = new UnleashImpl(repository, new CustomStrategy());

        assertFalse(unleash.isEnabled("myFeature"));
    }
}

@@ -27,16 +27,48 @@
 ample;%0A%0A
+import no.finn.unleash.Unleash;%0A
 import n
@@ -497,20 +497,16 @@
  Unleash
-Impl
  unleash

Use interface instead of Impl in UnleashUsageTest