private static boolean testPfamToGoMapping() {
        try {
            final PfamToGoMapping pg0 = new PfamToGoMapping( new DomainId( "A" ), new GoId( "GO:0000001" ) );
            final PfamToGoMapping pg1 = new PfamToGoMapping( new DomainId( "A" ), new GoId( "GO:0000001" ) );
            final PfamToGoMapping pg2 = new PfamToGoMapping( new DomainId( "B" ), new GoId( "GO:0000001" ) );
            final PfamToGoMapping pg3 = new PfamToGoMapping( new DomainId( "A" ), new GoId( "GO:0000002" ) );
            final PfamToGoMapping pg4 = new PfamToGoMapping( new DomainId( "B" ), new GoId( "GO:0000002" ) );
            if ( !pg0.equals( pg0 ) ) {
                return false;
            }
            if ( !pg0.equals( pg1 ) ) {
                return false;
            }
            if ( pg0.equals( pg2 ) ) {
                return false;
            }
            if ( pg0.equals( pg3 ) ) {
                return false;
            }
            if ( pg0.equals( pg4 ) ) {
                return false;
            }
            if ( pg0.compareTo( pg3 ) != 0 ) {
                return false;
            }
            if ( pg0.compareTo( pg2 ) >= 0 ) {
                return false;
            }
            if ( pg2.compareTo( pg0 ) <= 0 ) {
                return false;
            }
        }
        catch ( final Exception e ) {
            e.printStackTrace( System.out );
            return false;
        }
        return true;
    }