@@ -0,0 +1,857 @@
+package org.sagebionetworks.search;%0D%0A%0D%0Aimport static org.junit.Assert.assertEquals;%0D%0A%0D%0Aimport com.amazonaws.services.cloudsearchv2.model.IndexFieldType;%0D%0Aimport org.junit.Test;%0D%0Aimport org.sagebionetworks.repo.model.search.FacetTypeNames;%0D%0A%0D%0Apublic class IndexFieldToSynapseFacetTypeTest %7B%0D%0A%0D%0A%09@Test%0D%0A%09public void testAllValues()%7B%0D%0A%09%09assertEquals(FacetTypeNames.LITERAL, IndexFieldToSynapseFacetType.getSynapseFacetType(IndexFieldType.Literal));%0D%0A%09%09assertEquals(FacetTypeNames.CONTINUOUS, IndexFieldToSynapseFacetType.getSynapseFacetType(IndexFieldType.Int));%0D%0A%09%09assertEquals(FacetTypeNames.DATE, IndexFieldToSynapseFacetType.getSynapseFacetType(IndexFieldType.Date));%0D%0A%09%7D%0D%0A%0D%0A%09@Test(expected = IllegalArgumentException.class)%0D%0A%09public void testUnexpectedIndexField()%7B%0D%0A%09%09IndexFieldToSynapseFacetType.getSynapseFacetType(IndexFieldType.DoubleArray);%0D%0A%09%7D%0D%0A%7D%0D%0A

test for IndexFieldToSynapseFacetType