// Trying to write a junit test for this. It's probably really obvious but i cannot think of a way to achieve it.
public void connectToDB() {
conn = new QBasicConnection(host, port, user, password);
try {
conn.open();
} catch (IOException e) {
throw new IllegalStateException("", e);
} catch (QException e) {
throw new IllegalStateException("", e);
}
}