Implement simple Circuit class and JUnit test cases