test method invocation pattern