}
protected void assertRepositoryQueryMethod(Class<ThingRepository> repositoryClass, String methodName, Object[] paramValues, String expectedQuery, Object...expectedParam) {
Method method = methodFor(repositoryClass, methodName);
DerivedCypherRepositoryQuery derivedCypherRepositoryQuery = new DerivedCypherRepositoryQuery(ctx, new GraphQueryMethod(method, new DefaultRepositoryMetadata(repositoryClass), null, ctx), template);
Parameters<?, ?> parameters = new DefaultParameters(method);
ParametersParameterAccessor accessor = new ParametersParameterAccessor(parameters, paramValues);
String query = derivedCypherRepositoryQuery.createQueryWithPagingAndSorting(accessor);
Map<String, Object> params = derivedCypherRepositoryQuery.resolveParams(accessor);
String firstWord = expectedQuery.split("\\s+")[0];
int beginIndex = query.indexOf(firstWord);