### Question:
AmbariServer { static void setSystemProperties(Configuration configs) { System.setProperty("java.io.tmpdir", configs.getServerTempDir()); if (configs.getJavaVersion() >= 8) { System.setProperty("jdk.tls.ephemeralDHKeySize", String.valueOf(configs.getTlsEphemeralDhKeySize())); } }  String getServerOsType(); static AmbariManagementController getController(); static void setController(AmbariManagementController controller); @SuppressWarnings("deprecation") void run(); void stop(); @Deprecated void performStaticInjection(); void initViewRegistry(); static void setupProxyAuth(); static void enableLog4jMonitor(Map<String, String> configsMap); static void main(String[] args); static final String VIEWS_URL_PATTERN; static final EnumSet<DispatcherType> DISPATCHER_TYPES; volatile boolean running; }### Answer:
@Test public void testSystemProperties() throws Exception { Configuration configuration = EasyMock.createNiceMock(Configuration.class); expect(configuration.getServerTempDir()).andReturn("/ambari/server/temp/dir").anyTimes(); replay(configuration); AmbariServer.setSystemProperties(configuration); Assert.assertEquals(System.getProperty("java.io.tmpdir"), "/ambari/server/temp/dir"); }