I have started refactoring the classes that had a main method into testcases.

This main class seems to have never worked because you have to do a POST method to login to importIO and the implementation in APIReader did not support POST methods. 

Also as main methods this code never gets executed. As a test we have feedback all the time if the code still works.

The only thing it was trying to do was logging in, not searching. You can find a test that successfully logs in in ImportIoBehaviours.java