completed refactoring JavaNetTest