JUnit connection test