@Test
 public void removeConnection() {
   SocialUserConnection facebookConnection = insertFacebookConnection();
   assertThat(socialUserConnectionRepository.findOne(facebookConnection.getId())).isNotNull();
   connectionRepository.removeConnection(new ConnectionKey("facebook", "9"));
   assertThat(socialUserConnectionRepository.findOne(facebookConnection.getId())).isNull();
 }
 @Test
 public void findPrimaryConnection_afterRemove() {
   insertFacebookConnection();
   insertFacebookConnection2();
   // 9 is the providerUserId of the first Facebook connection
   connectionRepository.removeConnection(new ConnectionKey("facebook", "9"));
   assertEquals(1, connectionRepository.findConnections(TestFacebookApi.class).size());
   assertNotNull(connectionRepository.findPrimaryConnection(TestFacebookApi.class));
 }
 @Test
 public void removeConnectionNoOp() {
   connectionRepository.removeConnection(new ConnectionKey("facebook", "1"));
 }