### Question:
DefaultManifestParser implements ManifestAttributeSupplier { @Nullable @Override public String getPackage() { init(); return attributeValues.get(PACKAGE); } DefaultManifestParser(
            @NonNull File manifestFile,
            @NonNull BooleanSupplier canParseManifest,
            @Nullable EvalIssueReporter issueReporter); @Nullable @Override String getPackage(); @Nullable @Override String getSplit(); @Nullable @Override String getVersionName(); @Override int getVersionCode(); @Override @NonNull Object getMinSdkVersion(); @Override @NonNull Object getTargetSdkVersion(); @Nullable @Override String getInstrumentationRunner(); @Nullable @Override String getTargetPackage(); @Nullable @Override Boolean getFunctionalTest(); @Nullable @Override Boolean getHandleProfiling(); @Nullable @Override String getTestLabel(); @Nullable @Override Boolean getExtractNativeLibs();  }### Answer:
@Test public void parseManifestReportsWarning() { DefaultManifestParser manifestParser = new DefaultManifestParser(manifestFile, () -> false, issueReporter); manifestParser.getPackage(); verify(issueReporter) .reportWarning( eq(EvalIssueReporter.Type.MANIFEST_PARSED_DURING_CONFIGURATION), anyString()); }
@Test public void getPackage() { String packageName = defaultManifestParser.getPackage(); assertThat(packageName).isEqualTo("com.android.tests.builder.core"); }