maven sync test written in java