void () { ManifestFile file = createFile(""); assertEquals(0, file.getSections().size()); assertNull(file.getMainSection()); assertEquals(0, file.getHeaders().size()); file = createFile("Header: value\n\nAnother-Header: another value\n"); assertEquals(2, file.getSections().size()); assertNotNull(file.getMainSection()); assertEquals(1, file.getHeaders().size()); assertNotNull(file.getHeader("Header")); assertNull(file.getHeader("Another-Header")); }