### Question:
RedbeamsDbServerConfigurer { public boolean isRemoteDatabaseNeeded(Cluster cluster) { return StringUtils.isNotEmpty(cluster.getDatabaseServerCrn()); }  RDSConfig createNewRdsConfig(Stack stack, Cluster cluster, String dbName, String dbUser, DatabaseType type); boolean isRemoteDatabaseNeeded(Cluster cluster); DatabaseServerV4Response getDatabaseServer(String serverCrn);  }### Answer:
@Test public void isRemoteDatabaseNeededWhenDbServerCrnIsPresent() { Cluster testCluster = TestUtil.cluster(); testCluster.setDatabaseServerCrn(DB_SERVER_CRN); assertTrue(underTest.isRemoteDatabaseNeeded(testCluster)); }
@Test public void isRemoteDatabaseNeeded() { Cluster testCluster = TestUtil.cluster(); testCluster.setDatabaseServerCrn(null); assertFalse(underTest.isRemoteDatabaseNeeded(testCluster)); }