### Question:
AwsRdsInstanceView { public String getDBInstanceClass() { return databaseServer.getFlavor(); } 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 testDBInstanceClass() { when(server.getFlavor()).thenReturn("db.m3.medium"); assertEquals("db.m3.medium", underTest.getDBInstanceClass()); }
@Test public void testNoDBInstanceClass() { when(server.getFlavor()).thenReturn(null); assertNull(underTest.getDBInstanceClass()); }