def test_mixed_linkage(self):
    # Expect the scala_lib to include the jar_library lib_hub_and_spoke's jar as
    # well as one other jar.

    self.assertEqual(len(self.lib_hub_and_spoke.jar_dependencies), 1)
    self.assertEqual(len(self.scala_library.jar_dependencies), 2)
    self.assertTrue(
      self.lib_hub_and_spoke.jar_dependencies[0] in self.scala_library.jar_dependencies,
      'Expect the scala_lib to include the jar_library lib_hub_and_spoke\'s jar as well '
      'as one other jar.')

    self.assertEqual(set(self.scala_library.jar_dependencies),
                     set(self.java_library_explicit_dep.jar_dependencies),
                     'The java end of a mixed language logical lib with an explicit dep should be '
                     'unaffected by linking.')
dataset/ETHPy150Open pantsbuild/pants/tests/python/pants_test/targets/test_scala_library.py/ScalaLibraryTest.test_mixed_linkage/original