void (String expectedDocumentContents, String expectedClipboardContents) { checkResultByText(expectedDocumentContents); assertEquals("Clipboard contents mismatch", expectedClipboardContents, CopyPasteManager.getInstance().getContents(DataFlavor.stringFlavor)); }