### Question:
AdvancedSearchResultsBean { public String getErrorMessage() { return errorMessage; }  String getErrorMessage(); void setErrorMessage(String errorMessage); ResourceData [] getResourceDataList(); void setResourceDataList(ResourceData [] resourceDataList);  }### Answer:
@Test public void getErrorMessage() throws Exception { AdvancedSearchResultsBean bean = new AdvancedSearchResultsBean(); String errMsg = "Error generating search results"; bean.setErrorMessage(errMsg); assertEquals(errMsg, bean.getErrorMessage()); }