@Test public void testPassThroughContract() throws Exception { Object source = new Object(); Object extractedSource = new NullSourceExtractor().extractSource(source, null); assertNull("The contract of NullSourceExtractor states that the extraction *always* return null", extractedSource); }
@Test public void testPassThroughContractEvenWithNull() throws Exception { Object extractedSource = new NullSourceExtractor().extractSource(null, null); assertNull("The contract of NullSourceExtractor states that the extraction *always* return null", extractedSource); }