@Test
public void testGetField() {

    Manifest manifest = JarHelper.createManifest(new HashMap<String, String>() {
        {
            put(ManifestField.NAME.getFieldName(), NAME);
        }
    });
    assertThat(getField(manifest, ManifestField.NAME), equalTo(NAME));
    assertNull(getField(manifest, ManifestField.VERSION)); //Missing field
}