code: public static Condition basicAuth(String username, String password) {
          final String authString = username + ":" + password;
          final String encodedAuthString = new String(Base64.encodeBase64(authString.getBytes()));
          return new Condition(input -> ("Basic " + encodedAuthString).equals(input.getAuthorization()));
      }
docs: If basic authentication is provided