@Test
public void getProductListTest() throws IOException {

    final List<String> productDummyList = new ArrayList<String>();
    productDummyList.add("product1");
    productDummyList.add("product2");
    
    stubFor(get(urlMatching("/" + RequestUtils.getProductNames()))
            .willReturn(aResponse().withStatus(Status.OK.getStatusCode())
            		.withBody(JsonUtils.serialize(productDummyList))
                    .withHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON)));
    List<String> productNameList = null;
    Exception exception = null;
    try {
    	productNameList = client.getAllProductNames();
    } catch (Exception e) {
        exception = e;
    }
    // checks
    assertNull(exception);
    assertNotNull(productNameList);
    assertEquals(2, productNameList.size());
}