it works with test java class