// @checkstyle HeaderCheck (1 line)
package com.timepath.maven;

import com.timepath.maven.model.Coordinate;
import java.io.FileNotFoundException;
import org.junit.Assert;
import org.junit.Test;

/**
 * Test resolver functionality.
 *
 * @checkstyle JavadocTagsCheck (1 line)
 * @author TimePath
 * @version $Id$
 */
public class MavenResolverTest {

    /**
     * Test resolving coordinates to a URL.
     *
     * @throws FileNotFoundException If resolving fails
     */
    @Test
    public final void testResolve() throws FileNotFoundException {
        final String resolved = MavenResolver.resolve(
                Coordinate
                        .from("com.timepath", "launcher", "1.0-SNAPSHOT", null)
        );
        final String str = "/com/timepath/launcher/1.0-SNAPSHOT/launcher-1.0-";
        Assert.assertTrue("Failed to resolve", resolved.contains(str));
    }
}

@@ -151,24 +151,100 @@
 ort 
-org.junit.Assert
+java.util.prefs.BackingStoreException;%0Aimport org.junit.Assert;%0Aimport org.junit.BeforeClass
 ;%0Aim
@@ -386,16 +386,16 @@
 Id$%0A */%0A
-
 public c
@@ -420,16 +420,262 @@
 Test %7B%0A%0A
+    /**%0A     * Drop the caches to avoid interference between tests.%0A     * @throws BackingStoreException If fails.%0A     */%0A    @BeforeClass%0A    public static final void init() throws BackingStoreException %7B%0A        PersistentCache.drop();%0A    %7D%0A%0A
     /**%0A

Drop cache between tests