void (ManifestFile file, String name, @Nullable String expected) { Header header = file.getHeader(name); assertNotNull(header); HeaderValue value = header.getHeaderValue(); if (expected == null) { assertNull(value); } else { assertNotNull(value); assertEquals(expected, value.getUnwrappedText()); } }