PixManagerBean { public String getUpdateMessage() { return updateMessage; }  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 testGetUpdateMessage() { String expectedUpdateMsg = " Update Success"; cstl.setUpdateMessage(expectedUpdateMsg); assertEquals(expectedUpdateMsg, cstl.getUpdateMessage()); }