Working sample & JUnit tests