OKW_Properties extends Properties { public void addPropertiesFile(String fpsFileName) { this.FileProperties.add(fpsFileName); updateProperties(); return; } private  OKW_Properties(); static OKW_Properties getInstance(); void clear(); void init(); void updateProperties(); Boolean addResource(String fpsResourceName); void addPropertiesFile(String fpsFileName); void PrintProperties(); void PrintPropertiesSources(); ArrayList<String> getKeysStartswith( String Startwitth ); ArrayList<String> getPropertiesForKeysStartswith( String Startwith ); @Override String getProperty(String fpsKey); String getProperty( String fpsKey, String fpsDefault, Object... Parameters ); Boolean getProperty2Boolean(String fpsKey, String fpsDefault );  }
@Test public final void tc_addPropertiesFile_OKWFileDoesNotExistsException() throws IOException { okw.OKW_FileHelper.deleteFile( "testPropertiesExpected.properties" ); Assertions.assertThrows( OKWFileDoesNotExistsException.class, () -> { myProperties.addPropertiesFile( "testPropertiesExpected.properties" ); }); }