class Encoder extends MediaCodecPlugin implements ITransform, ISurfaceCreator {

    @Override
    public void pull(Frame frame) {
        throw new UnsupportedOperationException("Unexpected call of pull() in Encoder.");
    }

}

class EncoderTest extends MediaCodecPlugin {

    @Test(expected = UnsupportedOperationException.class)
    public void pull_shouldThrowUnsupportedOperationException() {

        VideoEncoder videoEncoder = create.videoEncoder().construct();
        videoEncoder.pull(create.frame().construct());
    }

}