DefaultManifestReader implements ManifestReader { String getField(Manifest manifest, ManifestField field) { return manifest.getMainAttributes().getValue(field.getFieldName()); }  @Override PluginMetadata read(Path pluginFile); static final String DEPENDENCY_DELIMITER; static final String VERSION_DELIMITER; static final DateTimeFormatter DATE_FORMATTER; }
@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)); }