### Question:
EmailServiceImpl implements EmailService { @Activate protected void activate(Map<String, Object> config) { connectTimeout = PropertiesUtil.toInteger(config.get(PROP_CONNECT_TIMEOUT), DEFAULT_CONNECT_TIMEOUT); soTimeout = PropertiesUtil.toInteger(config.get(PROP_SO_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); }  @Override List<String> sendEmail(final String templatePath,
                                  final Map<String, String> emailParams,
                                  final String... recipients); @Override List<InternetAddress> sendEmail(final String templatePath, final Map<String, String> emailParams,
                                           final InternetAddress... recipients); @Override List<InternetAddress> sendEmail(String templatePath, Map<String, String> emailParams, Map<String, DataSource> attachments, InternetAddress... recipients); @Override List<String> sendEmail(String templatePath, Map<String, String> emailParams, Map<String, DataSource> attachments, String... recipients); static final int DEFAULT_CONNECT_TIMEOUT; static final int DEFAULT_SOCKET_TIMEOUT; }### Answer:
@Test public void testCustomTimeouts() { Map<String, Object> params = new HashMap<>(); params.put("so.timeout", 100); params.put("conn.timeout", 500); emailService.activate(params); SimpleEmail email = sendTestEmail(); assertEquals(500, email.getSocketConnectionTimeout()); assertEquals(100, email.getSocketTimeout()); }