@Test
public void test_onSurfaceAvailable() {

    VideoEncoder videoEncoder = create.videoEncoder().construct();
    IOnSurfaceReady listener = mock(IOnSurfaceReady.class);
    videoEncoder.onSurfaceAvailable(listener);
    assertEquals(listener, videoEncoder.listeners.get(0));
}