@Test
public void testCheck2() throws Exception
{

    doCallRealMethod().when( proxy ).check( any( RelationLink.class ), any( RelationLink.class ), anyMap() );
    doCallRealMethod().when( proxy ).check( any( RelationLink.class ), any( Collection.class ), anyMap() );
    RelationLink source = mock( RelationLink.class );
    RelationLink target = mock( RelationLink.class );
    Collection<? extends RelationLink> targets = Collections.singleton( target );
    Map<String, String> traits = Maps.newHashMap();
    traits.put( "a", "b" );
    RelationInfoManager relationInfoManager = mock( RelationInfoManager.class );
    doReturn( relationInfoManager ).when( relationManager ).getRelationInfoManager();
    proxy.check( source, targets, traits );
    verify( proxy ).check( source, target, traits );
}