@Test
		void findClass_embeddedInPrimary() throws IOException {
			WorkspaceFileResource embeddedResource = new WorkspaceFileResourceBuilder()
					.withFileInfo(new StubFileInfo("embedded.jar"))
					.withJvmClassBundle(fromClasses(
							AccessibleFields.class
					)).build();
			WorkspaceResource primary = new WorkspaceResourceBuilder()
					.withEmbeddedResources(Map.of("embedded.jar", embeddedResource))
					.build();
			Workspace workspace = new BasicWorkspace(primary);

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


			// The path should have:
			// - The resource be the embedded one
			// - The bundle be the embedded one's jvm bundle
			var bundle = result.getValueOfType(Bundle.class);
			assertNotNull(bundle);
			assertSame(embeddedResource, result.getValueOfType(WorkspaceResource.class));
			assertSame(embeddedResource.getJvmClassBundle(), bundle);

			// Should be able to resolve the embedded resource by also doing a bundle resolution on the primary resource.
			assertSame(embeddedResource, primary.resolveBundleContainer(bundle));
			assertSame(primary, embeddedResource.getContainingResource());
		}
Tests for the {@link Workspace} model.
recaf-core/src/test/java/software/coley/recaf/workspace/model/WorkspaceModelTest.java