add test java and resource