Intriguing post by @Chis_Andrei exploring the use of unit tests to provide live examples of objects to demonstrate APIs. He even shows a notebook style UI and exploring related code!
Component-Based Synthesis for Complex APIs: https://www.cs.utexas.edu/~isil/sypet-popl17.pdf
An incredible paper demonstrating synthesis of significantly sized pieces of Java code! You write a test case, and SyPet writes the code.