removed unused Java 1.7-specific imports
fixed mustRunAfter syntax in test