package com.baeldung.staticdemo;

import org.junit.Assert;
import org.junit.Test;

public class SingletonIntegrationTest {

    @Test
    public void givenStaticInnerClass_whenMultipleTimesInstanceCalled_thenOnlyOneTimeInitialized() {
        Singleton object1 = Singleton.getInstance();
        Singleton object2 = Singleton.getInstance();
        
        Assert.assertSame(object1, object2);
    }
}
