try {
method = ClouderaManagerImpl.class.getDeclaredMethod("getSummaryErrorMsg", ApiCommand.class, String.class);
method.setAccessible(true);
ApiCommand apiCommand = new ApiCommand();
apiCommand.setId(new Long(1));
CommandsResource fakeCommandResource = new CommandsResource() {
@Override
public ApiCommand readCommand(long commandId) {
ApiCommand command = new ApiCommand();
command.setId(new Long(1));
command.setResultMessage("TestGetSummaryErrorMsg");