### Question:
CollectionOptions { public Map<String, String> getOptionalParameter() { return this.optionalParameters; } @VisibleForTesting  CollectionOptions(); @VisibleForTesting  CollectionOptions(RequestItem request); String getSortBy(); void setSortBy(String sortBy); SortOrder getSortOrder(); void setSortOrder(SortOrder sortOrder); String getFilter(); void setFilter(String filter); FilterOperation getFilterOperation(); void setFilterOperation(FilterOperation filterOperation); String getFilterValue(); void setFilterValue(String filterValue); int getFirst(); void setFirst(int first); int getMax(); void setMax(int max); Date getUpdatedSince(); void setUpdatedSince(Date updatedSince); @Override boolean equals(final Object o); @Override int hashCode(); Map<String, String> getOptionalParameter();  }### Answer:
@Test public void testOptionalParams() throws Exception { CollectionOptions op = new CollectionOptions(request); Map<String, String> optionalParams = op.getOptionalParameter(); Map<String, String> optionalParams1 = Maps.newHashMap(); optionalParams1.put("condition1","cvalue1"); optionalParams1.put("condition2","cvalue2"); assertEquals(optionalParams, optionalParams1); }