@Test public void testGetString() throws Exception { assertThat("File extension", HamcrestExample.getString(), is("hamcrest")); }
public static String getString() { return "hamcrest"; }
HamcrestExample { public static String getString() { return "hamcrest"; } }
HamcrestExample { public static String getString() { return "hamcrest"; }  }
HamcrestExample { public static String getString() { return "hamcrest"; }  static String getString(); }
HamcrestExample { public static String getString() { return "hamcrest"; }  static String getString();  }