### Question:
AwsRdsInstanceView { public String getMasterUserPassword() { return databaseServer.getRootPassword(); } AwsRdsInstanceView(DatabaseServer databaseServer); Long getAllocatedStorage(); Integer getBackupRetentionPeriod(); String getDBInstanceClass(); String getDBInstanceIdentifier(); String getEngine(); String getEngineVersion(); String getMasterUsername(); String getMasterUserPassword(); String getMultiAZ(); String getStorageType(); List<String> getVPCSecurityGroups();  }### Answer:
@Test public void testMasterUserPassword() { when(server.getRootPassword()).thenReturn("cloudera"); assertEquals("cloudera", underTest.getMasterUserPassword()); }
@Test public void testNoMasterUserPassword() { when(server.getRootPassword()).thenReturn(null); assertNull(underTest.getMasterUserPassword()); }