#vulnerable code 
                             @Test
	public void whenInputIsValidKeePassXmlShouldParseFileAndReturnCorrectEntries() throws FileNotFoundException {
		FileInputStream fileInputStream = new FileInputStream("target/test-classes/testDatabase_decrypted.xml");
		KeePassFile keePassFile = new XmlParser().parse(fileInputStream, Salsa20.createInstance(protectedStreamKey));
		
		List<Entry> entries = keePassFile.getTopEntries();
		Assert.assertNotNull(entries);
		
		Assert.assertEquals(2, entries.size());
		Assert.assertEquals("libdLW88cU6BvrPQlvKqMA==", entries.get(0).getUuid());
		Assert.assertEquals(5, entries.get(0).getProperties().size());
		Assert.assertEquals("Sample Entry", entries.get(0).getTitle());
		Assert.assertEquals("http://keepass.info/", entries.get(0).getUrl());
		Assert.assertEquals("User Name", entries.get(0).getUsername());
		Assert.assertEquals("Notes", entries.get(0).getNotes());
		Assert.assertEquals("Password", entries.get(0).getPassword());
	} 
                            #location 4 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                             @Test
	public void whenInputIsValidKeePassXmlShouldParseFileAndReturnCorrectEntries() throws FileNotFoundException {
		KeePassFile keePassFile = parseKeePassXml();
		
		List<Entry> entries = keePassFile.getTopEntries();
		Assert.assertNotNull(entries);
		
		Assert.assertEquals(2, entries.size());
		Assert.assertEquals("libdLW88cU6BvrPQlvKqMA==", entries.get(0).getUuid());
		Assert.assertEquals(5, entries.get(0).getProperties().size());
		Assert.assertEquals("Sample Entry", entries.get(0).getTitle());
		Assert.assertEquals("http://keepass.info/", entries.get(0).getUrl());
		Assert.assertEquals("User Name", entries.get(0).getUsername());
		Assert.assertEquals("Notes", entries.get(0).getNotes());
		Assert.assertEquals("Password", entries.get(0).getPassword());
	}