update mock : emulateClass + static vars
clean