Junit for ConnectionManager