@Test
public void shouldSuccessfullyCreateRequestWithMultipleSymbols() {
final String firstSymbol = "IBM";
final String secondSymbol = "MSFT";
final BatchStocksType stocksType = BatchStocksType.BOOK;
final RestRequest<Map<String, BatchStocks>> request = new BatchMarketStocksRequestBuilder()
.addType(stocksType)
.withSymbols(Lists.newArrayList(firstSymbol, secondSymbol))
.build();
assertThat(request.getMethodType()).isEqualTo(MethodType.GET);
assertThat(request.getPath()).isEqualTo("/stock/{symbol}/batch");
assertThat(request.getResponseType()).isEqualTo(new GenericType<Map<String, BatchStocks>>() {
});
assertThat(request.getPathParams()).containsExactly(entry("symbol", "market"));
assertThat(request.getQueryParams()).containsExactly(entry("types", "book"), entry("symbols", "MSFT,IBM"));
}