[Java] Soften test criteria for selection of default interface, fixes #40.