### Question:
DefaultLaunchDataWrapper extends LaunchDataWrapper { @Override public OperationProgress getLastOperationProgress() { return getLastProgressObject(OperationProgress.class); } DefaultLaunchDataWrapper(String[] args);  DefaultLaunchDataWrapper(ArgumentRetriever argumentRetriever, EnvironmentFieldRetriever environmentRetriever, PropertyRetriever propertyRetriever);  DefaultLaunchDataWrapper(ArgumentRetriever argumentRetriever); @Override String getPayload(); @Override OperationProgress getLastOperationProgress(); @Override T getLastProgressObject(Class<T> objectClass); @Override T getLastOperationProgressParam(String paramName, Class<T> objectClass); void setJsonHelper(JsonHelper jsonHelper);  }### Answer:
@Test public void testGetLastOperationProgress() { doReturn(OPERATION_PROGRESS_JSON).when(mockEnvironmentFieldRetriever).getField(HandlerField.LAST_PROGRESS.name()); launchDataWrapper.setJsonHelper(jsonHelper); OperationProgress lastOperationProgress = launchDataWrapper.getLastOperationProgress(); Assert.assertNotNull(lastOperationProgress); Assert.assertNotNull(lastOperationProgress.getParams()); Assert.assertTrue(lastOperationProgress.getParams().containsKey(JOB_PARAM_NAME)); }
@Test public void testGetLastOperationProgressJsonError() { doReturn(OPERATION_PROGRESS_JSON).when(mockEnvironmentFieldRetriever).getField(HandlerField.LAST_PROGRESS.name()); doThrow(new JsonHelperException("")).when(mockJsonHelper).getObjectFromString(anyString(), any()); OperationProgress lastOperationProgress = launchDataWrapper.getLastOperationProgress(); verify(mockJsonHelper, times(1)).getObjectFromString(anyString(), any()); Assert.assertNull(lastOperationProgress); }