A1CCalculatorPresenter { public String getA1cUnit() { return dbHandler.getUser(1).getPreferred_unit_a1c(); } A1CCalculatorPresenter(@NonNull final A1cCalculatorActivity activity,
                                  @NonNull final DatabaseHandler dbHandler); double calculateA1C(String glucose); void checkGlucoseUnit(); void saveA1C(double a1c); String getA1cUnit();  }
@Test public void ShouldReturnCorrectA1CUnit_WhenGetterCalled() { user.setPreferred_unit_a1c("mmol/mol"); assertThat(presenter.getA1cUnit()).isEqualTo("mmol/mol"); }