OsgiManifest { public String[] getExecutionEnvironments() { return executionEnvironments; } private  OsgiManifest(InputStream stream, String location); Headers<String, String> getHeaders(); String getValue(String key); String getBundleSymbolicName(); String getBundleVersion(); ArtifactKey toArtifactKey(); String[] getBundleClasspath(); String[] getExecutionEnvironments(); boolean isDirectoryShape(); ManifestElement[] getManifestElements(String key);  }
@Test public void testMultipleBREEs() throws Exception { OsgiManifest manifest = parseManifest("bree.mf"); assertArrayEquals(new String[] { "J2SE-1.5", "JavaSE-1.7" }, manifest.getExecutionEnvironments()); }
@Test public void testNoBREE() throws Exception { OsgiManifest manifest = parseManifest("noBree.mf"); assertArrayEquals(new String[0], manifest.getExecutionEnvironments()); }