Added test for extending a java interface like a trait.