PixManagerBean { public void setQueryMessage(String queryMessage) { this.queryMessage = queryMessage; }  String getAddMessage(); void setAddMessage(String addMessage); String getUpdateMessage(); void setUpdateMessage(String updateMessage); String getQueryMessage(); void setQueryMessage(String queryMessage); Map<String, String> getQueryIdMap(); void setQueryIdMap(Map<String, String> queryIdMap); boolean isSuccess(); void setSuccess(boolean isSuccess);  }
@Test public void testSetQueryMessage() { String expectedQueryMsg = " Query Success"; cstl.setQueryMessage(expectedQueryMsg); assertEquals(expectedQueryMsg, cstl.getQueryMessage()); }