WroModel { public final Collection<Group> getGroups() { return Collections.unmodifiableSet(groups); }  final Collection<Group> getGroups(); final WroModel setGroups(final Collection<Group> groups); void merge(final WroModel importedModel); WroModel addGroup(final Group group); @Override boolean equals(final Object obj); @Override int hashCode(); @Override String toString();  }
@Test public void testGetExistingGroup() { assertFalse(victim.getGroups().isEmpty()); final Group group = new WroModelInspector(victim).getGroupByName("g1"); assertEquals(1, group.getResources().size()); }
@Test public void shouldHaveCorrectNumberOfGrops() { assertFalse(victim.getGroups().isEmpty()); assertEquals(3, victim.getGroups().size()); }