Executable specifications for Java programs