Finished writing JUnit tests for ResourceProducer