@Test
public void getSimpleSurface_whenContextIsSpecified_usesSpecifiedContext() {

    IEglContext eglContext = mock(IEglContext.class);
    PreviewContext previewContext = new PreviewContext(null, 0, eglContext);
    IMediaCodec mediaCodec = create.mediaCodec().construct();
    VideoEncoder videoEncoder = create.videoEncoder().with(mediaCodec).construct();
    videoEncoder.getSimpleSurface(previewContext.getEglContext());
    verify(mediaCodec).createSimpleInputSurface(eq(eglContext));
}