### Question:
ElasticApmAttacher { static File createTempProperties(Map<String, String> configuration) { File tempFile = null; if (!configuration.isEmpty()) { Properties properties = new Properties(); properties.putAll(configuration); try { tempFile = File.createTempFile("elstcapm", ".tmp"); try (FileOutputStream outputStream = new FileOutputStream(tempFile)) { properties.store(outputStream, null); } } catch (IOException e) { e.printStackTrace(); } } return tempFile; }  static void attach(); static void attach(String propertiesLocation); static void attach(Map<String, String> configuration); static void attach(String pid, Map<String, String> configuration); @Deprecated static void attach(String pid, String agentArgs);  }### Answer:
@Test void testCreateTempProperties() throws Exception { File tempProperties = ElasticApmAttacher.createTempProperties(Map.of("foo", "bär")); assertThat(tempProperties).isNotNull(); tempProperties.deleteOnExit(); Properties properties = new Properties(); properties.load(new FileReader(tempProperties)); assertThat(properties.get("foo")).isEqualTo("bär"); }