For the one-sample problem, a two-stage rank test is derived which realizes a required power against a given local alternative, for all sufficiently smooth underlying distributions. This is achieved using asymptotic expansions resulting in a precision of order m-~, where m is the size of the first sample. The size of the second sample is derived through a number of estimators of e.g. integrated...