### Question:
ServerOptions { public Optional<String> getQueriesFile(final Properties properties) { if (queriesFile != null) { return Optional.of(queriesFile); } return Optional.ofNullable(properties.getProperty(QUERIES_FILE_CONFIG)); }  Properties loadProperties(final Supplier<Properties> overridePropertySupplier); Optional<String> getQueriesFile(final Properties properties); static ServerOptions parse(final String...args); @Inject
  public HelpOption help; }### Answer:
@Test public void shouldNotHaveQueriesFileIfNotInPropertiesOrCommandLine() { final ServerOptions serverOptions = new ServerOptions(); assertFalse(serverOptions.getQueriesFile(new Properties()).isPresent()); }
@Test public void shouldHaveQueriesFileIfInProperties() { final Properties properties = new Properties(); final String queryFilePath = "/path/to/file"; properties.put(ServerOptions.QUERIES_FILE_CONFIG, queryFilePath); final ServerOptions serverOptions = new ServerOptions(); assertThat(serverOptions.getQueriesFile(properties).get(), equalTo(queryFilePath)); }