/**
 * JBoss, Home of Professional Open Source
 * Copyright Red Hat, Inc., and individual contributors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * 	http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.jboss.aerogear.unifiedpush.message.util;


import org.junit.Test;
import static org.assertj.core.api.Assertions.*;
import java.util.Properties;

public class ConfigurationUtilsTest {

    @Test
    public void testExistingTryGetProperty(){
        Properties properties = System.getProperties();
        properties.setProperty("MyNiceProp","MyNiceValue");
        assertThat(ConfigurationUtils.tryGetProperty("MyNiceProp")).isEqualTo("MyNiceValue");
    }

    @Test
    public void testNonExistingTryGetProperty(){
        assertThat(ConfigurationUtils.tryGetProperty("MyNiceOtherProp")).isNull();
    }

}

@@ -711,16 +711,40 @@
 util;%0A%0A%0A
+import org.junit.After;%0A
 import o
@@ -884,47 +884,129 @@
     
-@Test%0A    public void testExistingTryGe
+private static final String TEST_PROPERTY_NAME = %22ConfigurationUtilsTestProperty%22;%0A%0A    @After%0A    public void cleanupTes
 tPro
@@ -1004,32 +1004,33 @@
 upTestProperty()
+ 
 %7B%0A        Proper
@@ -1094,33 +1094,146 @@
 ies.
-setProperty(%22MyNiceProp%22,
+remove(TEST_PROPERTY_NAME);%0A    %7D%0A%0A    @Test%0A    public void testExistingTryGetProperty()%7B%0A        System.setProperty(TEST_PROPERTY_NAME, 
 %22MyN
@@ -1301,20 +1301,26 @@
 rty(
-%22MyNiceProp%22
+TEST_PROPERTY_NAME
 )).i
@@ -1467,35 +1467,622 @@
 rty(
-%22MyNiceOtherProp%22)).isNull(
+TEST_PROPERTY_NAME)).isNull();%0A    %7D%0A%0A    @Test%0A    public void testExistingTryGetIntegerProperty() %7B%0A        System.setProperty(TEST_PROPERTY_NAME, %22123456%22);%0A        assertThat(ConfigurationUtils.tryGetIntegerProperty(TEST_PROPERTY_NAME)).isEqualTo(123456);%0A    %7D%0A%0A    @Test%0A    public void testNonExistingTryGetIntegerProperty() %7B%0A        assertThat(ConfigurationUtils.tryGetIntegerProperty(TEST_PROPERTY_NAME)).isNull();%0A    %7D%0A%0A    @Test%0A    public void testNonExistingTryGetIntegerPropertyWithDefaultValue() %7B%0A        assertThat(ConfigurationUtils.tryGetIntegerProperty(TEST_PROPERTY_NAME, 123)).isEqualTo(123
 );%0A 

Add tests for new methods in ConfigurationUtils.