@Test
public void testGetCorpus() {

  // Basic sanity test: ensure it's a non-null, non-empty return.
  byte[] corpus1 = window.getCorpus();
  Assert.assertNotNull(corpus1);
  Assert.assertTrue(corpus1.length > 0);
  // Basic sanity test: ensure the corpus is distinct each time the method is called (i.e., the
  // mutable object returned is independent of the actual corpus).
  byte[] corpus2 = window.getCorpus();
  Assert.assertArrayEquals(corpus1, corpus2);
  Assert.assertNotSame(corpus1, corpus2);
}