@Test
public void sourceFilteringParamTest() {

    String query = "{\"query\" : { \"term\" : { \"name\" : \"KangSungJeon\" } }}";
    String includePatternItem1 = "SeolaIncludeFieldName";
    String includePatternItem2 = "SeohooIncludeFieldName";
    String excludePatternItem1 = "SeolaExcludeField.*";
    String excludePatternItem2 = "SeohooExcludeField.*";
    Action search = new Search.Builder(query)
            .addSourceIncludePattern(includePatternItem1)
            .addSourceIncludePattern(includePatternItem2)
            .addSourceExcludePattern(excludePatternItem1)
            .addSourceExcludePattern(excludePatternItem2)
            .build();
    JsonParser parser = new JsonParser();
    JsonElement parsed = parser.parse(search.getData(new Gson()).toString());
    JsonObject obj = parsed.getAsJsonObject();
    JsonObject source = obj.getAsJsonObject("_source");
    JsonArray includePattern = source.getAsJsonArray("includes");
    assertEquals(2, includePattern.size());
    assertEquals(includePatternItem1, includePattern.get(0).getAsString());
    assertEquals(includePatternItem2, includePattern.get(1).getAsString());
    JsonArray excludePattern = source.getAsJsonArray("excludes");
    assertEquals(2, excludePattern.size());
    assertEquals(excludePatternItem1, excludePattern.get(0).getAsString());
    assertEquals(excludePatternItem2, excludePattern.get(1).getAsString());
}