RepositoryContentUtil { static boolean isGroupRepository(final Repository repository) { return GroupType.NAME.equals(repository.getType().getValue()); } private  RepositoryContentUtil();   }
@Test public void testBeTrueWhenGroupRepository() { when(repository.getType()).thenReturn(new GroupType()); assertTrue(isGroupRepository(repository)); }
@Test public void testBeFalseWhenNotGroupRepository() { when(repository.getType()).thenReturn(new HostedType()); assertFalse(isGroupRepository(repository)); }