source: class HalSerializerTest {
  
      private HalSerializer adapter;
  
      @Test
      public void testReadResourceList() {
  
target:         // Testdaten erstellen
          Map<String, List<HalResource>> embedded = new HashMap<>();
          Set<String> embeddedLists = new HashSet<>();
          List<TestResource> res = new ArrayList<>();
          res.add(new TestResource());
          res.add(new TestResource());
  
          // Test ausführen
          adapter.readResource(res, "test", embedded, embeddedLists);
  
          // Überprüfen
          Assert.assertEquals(1, embedded.size());
          List<HalResource> list = embedded.get("test");
          Assert.assertNotNull(list);
          Assert.assertEquals(2, list.size());
          Assert.assertEquals(1, embeddedLists.size());
          Assert.assertTrue(embeddedLists.contains("test"));
      }
  
  }