It looks like a functional test, but it seems that you write code to obtain the result you need, without using the actual code in the application …