	@Test
	public void updateClient_yesOfflineAccess() {


		ClientDetailsEntity oldClient = Mockito.mock(ClientDetailsEntity.class);
		ClientDetailsEntity newClient = Mockito.mock(ClientDetailsEntity.class);

		Mockito.when(newClient.isAllowRefresh()).thenReturn(true);

		// scopes returned by client entities are Strings
		@SuppressWarnings("unchecked")
		Set<String> scopes = Mockito.mock(Set.class);

		Mockito.when(newClient.getScope()).thenReturn(scopes);

		service.updateClient(oldClient, newClient);

		Mockito.verify(scopes).add(SystemScopeService.OFFLINE_ACCESS);
	}