### Question:
HeartbeatDatabaseInfo extends HeartbeatInfo { public void contributeToHttpCall(HeartbeatCall call) { call.addParameter("repoDbName[]", getDatabaseName() == null ? "" : getDatabaseName()); call.addParameter("repoDbVersion[]", getDatabaseVersion() == null ? "" : getDatabaseVersion()); call.addParameter("repoDbCount[]", String.valueOf(getCount())); }  String getDatabaseName(); void setDatabaseName(String databaseName); String getDatabaseVersion(); void setDatabaseVersion(String databaseVersion); void contributeToHttpCall(HeartbeatCall call); String getKey();  }### Answer:
@Test void contributeToHttpCall_instanceWithDefaultValues_repoDbNameAndRepoDbVersionAndCountParamIsContributed() { objectUnderTest.contributeToHttpCall(heartbeatCall); verify(heartbeatCall).addParameter(REPO_DB_NAME_KEY, ""); verify(heartbeatCall).addParameter(REPO_DB_VERSION_KEY, ""); verify(heartbeatCall).addParameter(REPO_DB_COUNT_KEY, "0"); }