@Test
public void handleRequest_imageCreationNotYetStarted_inProgress_creation() {

    final CreateImageResponse createImageResponse = CreateImageResponse.builder()
            .imageBuildVersionArn(generateImageForTest().arn())
            .build();
    final ResourceHandlerRequest<ResourceModel> request = ResourceHandlerRequest.<ResourceModel>builder()
            .desiredResourceState(model)
            .build();
    final CallbackContext inputContext = CallbackContext.builder()
            .build();
    final CallbackContext outputContext = CallbackContext.builder()
            .imageCreationInvoked(true)
            .build();
    doReturn(createImageResponse)
            .when(proxy)
            .injectCredentialsAndInvokeV2(any(), any());
    final ProgressEvent<ResourceModel, CallbackContext> response
            = handler.handleRequest(proxy, request, inputContext, logger);
    assertThat(response).isNotNull();
    assertThat(response.getStatus()).isEqualTo(OperationStatus.IN_PROGRESS);
    assertThat(response.getCallbackContext()).isEqualTo(outputContext);
    assertThat(response.getCallbackDelaySeconds()).isEqualTo(10);
    ResourceModel returnModel = response.getResourceModel();
    assertThat(returnModel.getArn()).isEqualTo(model.getArn());
    assertThat(response.getResourceModels()).isNull();
    assertThat(response.getMessage()).isNull();
    assertThat(response.getErrorCode()).isNull();
}