#vulnerable code 
                             @Test
	public void whenInputIsValidKeePassXmlShouldParseFileAndReturnCorrectGroups() throws FileNotFoundException {
		FileInputStream fileInputStream = new FileInputStream("target/test-classes/testDatabase_decrypted.xml");
		KeePassFile keePassFile = new XmlParser().parse(fileInputStream, Salsa20.createInstance(protectedStreamKey));
		
		List<Group> groups = keePassFile.getTopGroups();
		Assert.assertNotNull(groups);
		
		Assert.assertEquals(6, groups.size());
		Assert.assertEquals("General", groups.get(0).getName());
		Assert.assertEquals("FqvMJ8yjlUSAEt9OmNSj2A==", groups.get(0).getUuid());
		
		Assert.assertEquals("Windows", groups.get(1).getName());
		Assert.assertEquals("rXt7D+EM/0qW1rgPB4g5nw==", groups.get(1).getUuid());
		
		Assert.assertEquals("Network", groups.get(2).getName());
		Assert.assertEquals("DwdAaKn4tEyXFlU56/2UBQ==", groups.get(2).getUuid());
		
		Assert.assertEquals("Internet", groups.get(3).getName());
		Assert.assertEquals("COgUrPt5P0676DeyZn/auQ==", groups.get(3).getUuid());
		
		Assert.assertEquals("eMail", groups.get(4).getName());
		Assert.assertEquals("/xWfOfnC6ki76sNhrZR7rw==", groups.get(4).getUuid());
		
		Assert.assertEquals("Homebanking", groups.get(5).getName());
		Assert.assertEquals("Rdjt21Jla0+E5Q9ElJHw1g==", groups.get(5).getUuid());
	} 
                            #location 4 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                             @Test
	public void whenInputIsValidKeePassXmlShouldParseFileAndReturnCorrectGroups() throws FileNotFoundException {
		KeePassFile keePassFile = parseKeePassXml();
		
		List<Group> groups = keePassFile.getTopGroups();
		Assert.assertNotNull(groups);
		
		Assert.assertEquals(6, groups.size());
		Assert.assertEquals("General", groups.get(0).getName());
		Assert.assertEquals("FqvMJ8yjlUSAEt9OmNSj2A==", groups.get(0).getUuid());
		
		Assert.assertEquals("Windows", groups.get(1).getName());
		Assert.assertEquals("rXt7D+EM/0qW1rgPB4g5nw==", groups.get(1).getUuid());
		
		Assert.assertEquals("Network", groups.get(2).getName());
		Assert.assertEquals("DwdAaKn4tEyXFlU56/2UBQ==", groups.get(2).getUuid());
		
		Assert.assertEquals("Internet", groups.get(3).getName());
		Assert.assertEquals("COgUrPt5P0676DeyZn/auQ==", groups.get(3).getUuid());
		
		Assert.assertEquals("eMail", groups.get(4).getName());
		Assert.assertEquals("/xWfOfnC6ki76sNhrZR7rw==", groups.get(4).getUuid());
		
		Assert.assertEquals("Homebanking", groups.get(5).getName());
		Assert.assertEquals("Rdjt21Jla0+E5Q9ElJHw1g==", groups.get(5).getUuid());
	}