PixManagerBean { public void setAddMessage(String addMessage) { this.addMessage = addMessage; }  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 testSetAddMessage() { String expectedAddMsg = " Add Success"; cstl.setAddMessage(expectedAddMsg); assertEquals(expectedAddMsg, cstl.getAddMessage()); }