Generate a Java object RefreshMsg, UpdateMsg, StatusMsg on the fly

For EMA Java application's Unit Test, is that possible to populate / mock the EMA RefreshMsg, UpdateMsg, StatusMsg?
i.e., generate a Java object RefreshMsg, UpdateMsg, StatusMsg on the fly.

Best Answer