Java example for Test