@Test
public void testGetDepotsGroupCountWithoutDepot() throws Exception {

	Mockito.when(
		_user.getGroups()
	).thenReturn(
		Collections.emptyList()
	);
	DepotAdminMembershipsDisplayContext
		depotAdminMembershipsDisplayContext =
			new DepotAdminMembershipsDisplayContext(
				Mockito.mock(ItemSelector.class),
				_getLiferayPortletRequest(
					new ThemeDisplayBuilder().withPermissionChecker(
						getPermissionCheckerWithCompanyAdmin()
					).build()),
				null);
	Assert.assertEquals(
		0, depotAdminMembershipsDisplayContext.getDepotGroupsCount());
}