}
@Factory
public static Matcher<Labeled> hasText(Matcher<String> matcher) {
return null;
}
<BUG>public static boolean hasText(Labeled labeled, String text) {
return text.equals(lookupText(labeled));</BUG>
}
public static String lookupText(Labeled labeled) {
return labeled.getText();

}
@Factory
public static Matcher<Labeled> hasText(Matcher<String> matcher) {
return null;
}
public static boolean hasText(Labeled labeled,
String text) {
return text.equals(lookupText(labeled));
}
public static String lookupText(Labeled labeled) {
return labeled.getText();
