@Override
  public void delete(String propertyKey) {
    checkPropertyKey(propertyKey);
    try (DbSession dbSession = dbClient.openSession(false)) {
      dbClient.internalPropertiesDao().delete(dbSession, propertyKey);
      dbSession.commit();
    }
  }
@Test
  public void delete_shouldCallDaoAndDeleteProperty() {
    underTest.delete(SOME_KEY);
    verify(internalPropertiesDao).delete(dbSession, SOME_KEY);
    verify(dbSession).commit();
  }