}
IEmailConfiguration emptyConfig = emailResource.getEmailConfig();
assertTrue( BLANK_CONFIG.equals( emptyConfig ) );
Response response = emailResource.setEmailConfig( new EmailConfiguration() );
assertEquals( OK_STATUS, response.getStatus() );
emptyConfig = emailResource.getEmailConfig();
assertTrue( BLANK_CONFIG.equals( emptyConfig ) );
final EmailConfiguration emailConfigOriginal =
new EmailConfiguration( true, false, "test@pentaho.com", "Pentaho Scheduler", null, 36,
"", true, "user", null, false, true );
response = emailResource.setEmailConfig( emailConfigOriginal );
assertEquals( OK_STATUS, response.getStatus() );
final IEmailConfiguration emailConfigNew = emailResource.getEmailConfig();
assertTrue( emailConfigOriginal.equals( emailConfigNew ) );
}