Optional<String> getQueriesFile(final Map<String, String> properties) {
    if (queriesFile != null) {
      return Optional.of(queriesFile);
    }

    return Optional.ofNullable(properties.get(QUERIES_FILE_CONFIG));
  }
@Test
  public void shouldHaveQueriesFileIfInProperties() {
    // Given:
    final Map<String, String> propsFile = ImmutableMap.of(
        ServerOptions.QUERIES_FILE_CONFIG, "/path/to/file"
    );

    // Then:
    assertThat(serverOptions.getQueriesFile(propsFile), is(Optional.of("/path/to/file")));
  }