@Test
		void findClass_embeddedDeeperInPrimary() throws IOException {
			// Build the following model:
			//  > 1.jar
			//   > ...
			//    > 5.jar
			//      - AccessibleFields.class
			WorkspaceFileResource deepestResource = new WorkspaceFileResourceBuilder()
					.withFileInfo(new StubFileInfo("5.jar"))
					.withJvmClassBundle(fromClasses(AccessibleFields.class))
					.build();
			WorkspaceFileResourceBuilder embeddedBuilder =
					new WorkspaceFileResourceBuilder().withFileInfo(new StubFileInfo("1.jar")).withEmbeddedResources(Map.of("2.jar",
							new WorkspaceFileResourceBuilder().withFileInfo(new StubFileInfo("2.jar")).withEmbeddedResources(Map.of("3.jar",
									new WorkspaceFileResourceBuilder().withFileInfo(new StubFileInfo("3.jar")).withEmbeddedResources(Map.of("4.jar",
											new WorkspaceFileResourceBuilder().withFileInfo(new StubFileInfo("4.jar")).withEmbeddedResources(Map.of("5.jar",
													deepestResource)
											).build())
									).build())
							).build())
					);


			// Build the workspace
			//  - using the basic workspace with 'false' parameter so that we include only our resources
			//    and no internal resources like the runtime classpath.
			WorkspaceResource primary = new WorkspaceResourceBuilder()
					.withEmbeddedResources(Map.of("1.jar", embeddedBuilder.build()))
					.build();
			Workspace workspace = new BasicWorkspace(primary, Collections.emptyList(), false);

			// Find a class in the primary resource's embedded resource.
			ClassPathNode result = findClass(workspace, AccessibleFields.class, false);
			assertNotNull(result);

			// Bundle/resource should belong to the deepest embedded resource.
			var bundle = result.getValueOfType(Bundle.class);
			assertNotNull(bundle);
			WorkspaceResource valueOfType = result.getValueOfType(WorkspaceResource.class);
			assertSame(deepestResource, valueOfType);

			// We should be able to also find the deepest embedded resource from the primary resource
			// if we have a reference to the deepest bundle.
			var resolvedBundleContainer = (WorkspaceFileResource) (primary.resolveBundleContainer(bundle));
			assertNotNull(resolvedBundleContainer);
			assertEquals("5.jar", resolvedBundleContainer.getFileInfo().getName());

			// The predicate-based find operation should yield the same path.
			SortedSet<ClassPathNode> allClassPaths = workspace.findClasses(c -> true);
			assertEquals(1, allClassPaths.size());
			assertEquals(result, allClassPaths.first());
		}
Tests for the {@link Workspace} model.
recaf-core/src/test/java/software/coley/recaf/workspace/model/WorkspaceModelTest.java