Even if your deployment has to target 1.4, consider using a later release for your tests (e.g. Different maven compiler versions for test and main).
This will allow you to deploy binaries that were compiled with a 1.4 JDK and still take advantage of any later features in test frameworks, as well as building experience with current Java to prepare for a production upgrade.