package com.kickstarter.libs.utils;

import com.kickstarter.factories.CategoryFactory;
import com.kickstarter.factories.LocationFactory;
import com.kickstarter.libs.RefTag;
import com.kickstarter.services.DiscoveryParams;

import junit.framework.TestCase;

import static com.kickstarter.libs.utils.DiscoveryParamsUtils.refTag;

public class DiscoveryParamsUtilsTest extends TestCase {

  public void testRefTag() {
    assertEquals(
      refTag(DiscoveryParams.builder().category(CategoryFactory.artCategory()).build()),
      RefTag.category()
    );

    assertEquals(
      refTag(DiscoveryParams.builder().category(CategoryFactory.artCategory()).sort(DiscoveryParams.Sort.POPULAR).build()),
      RefTag.category(DiscoveryParams.Sort.POPULAR)
    );

    assertEquals(
      refTag(DiscoveryParams.builder().location(LocationFactory.germany()).build()),
      RefTag.city()
    );

    assertEquals(
      refTag(DiscoveryParams.builder().staffPicks(true).build()),
      RefTag.recommended()
    );

    assertEquals(
      refTag(DiscoveryParams.builder().staffPicks(true).sort(DiscoveryParams.Sort.POPULAR).build()),
      RefTag.recommended(DiscoveryParams.Sort.POPULAR)
    );

    assertEquals(
      refTag(DiscoveryParams.builder().social(1).build()),
      RefTag.social()
    );

    assertEquals(
      refTag(DiscoveryParams.builder().term("art").build()),
      RefTag.search()
    );

    assertEquals(
      refTag(DiscoveryParams.builder().build()),
      RefTag.discovery()
    );
  }
}

@@ -254,79 +254,8 @@
 e;%0A%0A
-import static com.kickstarter.libs.utils.DiscoveryParamsUtils.refTag;%0A%0A
 publ
@@ -353,32 +353,53 @@
 rtEquals(%0A      
+DiscoveryParamsUtils.
 refTag(Discovery
@@ -513,32 +513,53 @@
 rtEquals(%0A      
+DiscoveryParamsUtils.
 refTag(Discovery
@@ -566,32 +566,41 @@
 Params.builder()
+%0A        
 .category(Catego
@@ -623,16 +623,25 @@
 egory())
+%0A        
 .sort(Di
@@ -659,32 +659,41 @@
 ms.Sort.POPULAR)
+%0A        
 .build()),%0A     
@@ -763,32 +763,53 @@
 rtEquals(%0A      
+DiscoveryParamsUtils.
 refTag(Discovery
@@ -915,32 +915,53 @@
 rtEquals(%0A      
+DiscoveryParamsUtils.
 refTag(Discovery
@@ -1055,32 +1055,53 @@
 rtEquals(%0A      
+DiscoveryParamsUtils.
 refTag(Discovery
@@ -1258,32 +1258,53 @@
 rtEquals(%0A      
+DiscoveryParamsUtils.
 refTag(Discovery
@@ -1386,32 +1386,53 @@
 rtEquals(%0A      
+DiscoveryParamsUtils.
 refTag(Discovery
@@ -1524,16 +1524,37 @@
 (%0A      
+DiscoveryParamsUtils.
 refTag(D

Remove static import in this test.