Assert java command instead of foo