when(testResource.securityService.getCurrentUser()).thenReturn(testUser);
}
@Test
public void testConnectionToDTO() {
GitHubProjectHostingProvider mockProvider = Mockito.mock(GitHubProjectHostingProvider.class);
when(mockProvider.getId()).thenReturn(ProviderIdConstants.GITHUB_PROVIDER_ID);
when(mockProvider.getType()).thenReturn(ProjectHostingProvider.TYPE);
Connection c = new Connection.Builder()
.alias("test github")
.description("test github")
.visibility(SobaObject.Visibility.PUBLIC)