@Override
  public void start() {
    Optional<String> passcodeOpt = configuration.get(WEB_SYSTEM_PASS_CODE.getKey())
      // if present, result is never empty string
      .map(StringUtils::trimToNull);

    if (passcodeOpt.isPresent()) {
      logState("enabled");
      configuredPasscode = passcodeOpt.get();
    } else {
      logState("disabled");
      configuredPasscode = null;
    }
  }
@Test
  public void passcode_is_disabled_if_blank_configuration() {
    configurePasscode("");
    underTest.start();

    assertThat(logTester.logs(Level.INFO)).contains("System authentication by passcode is disabled");
  }