### Question:
Instructions { public static Properties load(File file) throws IOException { if (file.isFile()) { FileInputStream fis = null; try { Properties headers = new Properties(); fis = new FileInputStream(file); headers.load(fis); return headers; } finally { IOUtils.closeQuietly(fis); } } return new Properties(); } private  Instructions(); static Properties merge(Properties properties, File extra); static Properties mergeAndOverrideExisting(Properties props1, Properties props2); static Properties mergeAndSkipExisting(Properties props1, Properties props2); static Properties load(File file); static Properties sanitize(Properties properties);  }### Answer:
@Test public void testLoadEmptyFile() throws Exception { File file = new File("src/test/resources/instructions/empty.bnd"); assertThat(Instructions.load(file)).isEmpty(); }
@Test public void testLoadMissingFile() throws Exception { File file = new File("src/test/resources/instructions/missing.bnd"); assertThat(Instructions.load(file)).isEmpty(); }
@Test public void testLoad() throws IOException { File file = new File("src/test/resources/instructions/instructions.bnd"); assertThat(Instructions.load(file)) .hasSize(2) .containsEntry("Import-Package", "*") .containsEntry("Private-Package", "org.acme"); }