@Test
public void getMediaFormatType_Video() {

    VideoFormat videoFormat = create.videoFormat().withVideoBitRateInKBytes(0).withFrameRate(0).withIFrameInterval(0).construct();
    VideoEncoder videoEncoder = create.videoEncoder().construct();
    AndroidMediaObjectFactoryFake factory = new AndroidMediaObjectFactoryFake(create);
    factory.withVideoEncoder(videoEncoder);
    new CameraCapture(factory, progressListener).setTargetVideoFormat(videoFormat);
    assertEquals(MediaFormatType.VIDEO, videoEncoder.getMediaFormatType());
}