Copying templateTest java class