### Question:
CalibrationPresenter implements CalibrationContract.Presenter,
        FeatureAutoConfigurable.FeatureAutoConfigurationListener { @Override public void onConfigurationFinished(FeatureAutoConfigurable f, int status) { isCalibrating = false; setCalibratedState(); }  @Override void manage(@NonNull CalibrationContract.View v,@NonNull FeatureAutoConfigurable feature); @Override void startCalibration(); @Override void unManageFeature(); @Override void onAutoConfigurationStarting(FeatureAutoConfigurable f); @Override void onConfigurationFinished(FeatureAutoConfigurable f, int status); @Override void onAutoConfigurationStatusChanged(FeatureAutoConfigurable f, int status); @Override void onUpdate(@NonNull Feature f, @NonNull Feature.Sample sample);  }### Answer:
@Test public void whenCalibrationEndsHideDialog(){ FeatureAutoConfigurationListener listener = getConfigListener(); listener.onConfigurationFinished(mFeature,100); verify(mView).hideCalibrationDialog(); }
@Test public void whenCalibrationEndsSetCalibrationButtonToTrue(){ FeatureAutoConfigurationListener listener = getConfigListener(); listener.onConfigurationFinished(mFeature,100); verify(mView).setCalibrationButtonState(true); }