* @see Document#getTitle()
*
*/
@Test
public void getListOfDocumentTitlesUsingReferenceOfInstanceMethodBelongingToAClass() {
Document expenses = new Document("My Expenses",
Arrays.asList(new Page("LJC Open Conference ticket: £25"), new Page("Beer stipend: £100")));
Document toDoList = new Document("My ToDo List",
Arrays.asList(new Page("Build a todo app"), new Page("Pick up dry cleaning")));
Document certificates = new Document("My Certificates",
Arrays.asList(new Page("Oracle Certified Professional"), new Page("Swimming 10m")));
assertThat(Documents.titlesOf(expenses, toDoList, certificates),
contains("My Expenses", "My ToDo List", "My Certificates"));
assertThat(Documents.class, usesMethodReferences("getTitle"));