@Test
    void field_references_are_included() {
        assertTrue(analyzeClass(Methods.class).getReferencedClasses().containsAll(List.of(name(java.util.List.class), name(Fields.class))));
    }
Tests that classes used in method bodies are included in the imports list.

@author Tony Vaagenes
bundle-plugin/src/test/java/com/yahoo/container/plugin/classanalysis/AnalyzeMethodBodyTest.java