### Question:
AdvancedSearchResultsBean { public ResourceData [] getResourceDataList() { return resourceDataList; }  String getErrorMessage(); void setErrorMessage(String errorMessage); ResourceData [] getResourceDataList(); void setResourceDataList(ResourceData [] resourceDataList);  }### Answer:
@Test public void getResourceDataList() throws Exception { AdvancedSearchResultsBean bean = new AdvancedSearchResultsBean(); ResourceData[] resourceDatas = new ResourceData[] {new ResourceData()}; bean.setResourceDataList(resourceDatas); assertArrayEquals(resourceDatas, bean.getResourceDataList()); }