public static Map<String, String> loadProperties(final File propertiesFile) {
    return loadProperties(ImmutableList.of(propertiesFile));
  }
@Test
  public void shouldThrowIfPropsFileContainsBlackListedProps() {
    // Given:
    givenPropsFileContains(
        "java.some.disallowed.setting=something" + System.lineSeparator()
            + "java.not.another.one=v"
    );

    // When
    final KsqlException e = assertThrows(
        KsqlException.class,
        () -> PropertiesUtil.loadProperties(propsFile)
    );

    // Then:
    assertThat(e.getMessage(), containsString(
        "Property file contains the following blacklisted properties"));
    assertThat(e.getMessage(), containsString(
        "java.some.disallowed.setting"));
    assertThat(e.getMessage(), containsString(
        "java.not.another.one"));
  }