@Test
public void getMediaFormatType_Audio() {

    AudioFormat audioFormat = create.audioFormat().construct();
    AudioEncoder audioEncoder = create.audioEncoder().construct();
    AndroidMediaObjectFactoryFake factory = new AndroidMediaObjectFactoryFake(create);
    factory.withAudioEncoder(audioEncoder);
    new CameraCapture(factory, progressListener).setTargetAudioFormat(audioFormat);
    assertEquals(MediaFormatType.AUDIO, audioEncoder.getMediaFormatType());
}