@Test
		void testIncludeClassesFilter() {
			IncludeClassesFilter filter =
					new IncludeClassesFilter(null, strMatchProvider.newContainsPredicate("AccessibleMethods"));

			// Generate mappings
			Mappings mappings = mappingGenerator.generate(workspace, resource, inheritanceGraph, nameGenerator, filter);

			// There are only two classes that contain the given text, AccessibleMethods and AccessibleMethodsChild
			// All of their methods should be remapped. They contain no fields.
			IntermediateMappings intermediate = mappings.exportIntermediate();
			assertEquals(2, intermediate.getClasses().size());
			assertEquals(0, intermediate.getFields().size());
			assertEquals(2, intermediate.getMethods().size());
			assertEquals(0, intermediate.getVariables().size()); // None of the methods have locals
			String key = AccessibleMethods.class.getName().replace('.', '/');
			String keyChild = AccessibleMethodsChild.class.getName().replace('.', '/');
			List<MethodMapping> methodMappings = intermediate.getMethods().get(key);
			List<MethodMapping> methodMappingsChild = intermediate.getMethods().get(keyChild);
			assertEquals(workspace.findClass(key).getValue().getMethods().size() - 1, methodMappings.size()); // -1 because <init>
			assertEquals(workspace.findClass(keyChild).getValue().getMethods().size() - 1, methodMappingsChild.size());
		}
Similar to {@link #testIncludeNameFilter()} but with a filter that includes members when a class is mapped
recaf-core/src/test/java/software/coley/recaf/services/mapping/gen/MappingGeneratorTest.java