### Question:
AwsRdsInstanceView { public List<String> getVPCSecurityGroups() { return databaseServer.getSecurity().getCloudSecurityIds(); } 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 testVPCSecurityGroups() { when(server.getSecurity().getCloudSecurityIds()).thenReturn(List.of("sg-123")); assertEquals(List.of("sg-123"), underTest.getVPCSecurityGroups()); }
@Test public void testNoVPCSecurityGroups() { when(server.getSecurity().getCloudSecurityIds()).thenReturn(null); assertNull(underTest.getVPCSecurityGroups()); }