update a java switch test