### Question:
MultiLangDaemon { MultiLangDaemonConfig buildMultiLangDaemonConfig(final String propertiesFile) { try { return new MultiLangDaemonConfig(propertiesFile); } catch (IOException e) { throw new RuntimeException("Error while reading properties file: " + e.getMessage()); } }  static void main(final String[] args);  }### Answer:
@Test public void testBuildMultiLangConfigMissingPropertiesFile() { expectedException.expect(RuntimeException.class); expectedException.expectMessage(containsString("Error while reading properties file:")); daemon.buildMultiLangDaemonConfig("blahblahblah"); }
@Test public void testBuildMultiLangConfigWithIncorrectInformation() throws IOException { File propertiesFile = temporaryFolder.newFile("temp.properties"); expectedException.expect(RuntimeException.class); expectedException.expectMessage(containsString("Must provide an executable name in the properties file")); daemon.buildMultiLangDaemonConfig(propertiesFile.getAbsolutePath()); }