@org.junit.Test public void testGetConnectionProperty() throws Exception { when(propertyconnection.getPropertyName()).thenReturn(propertyName); Assert.assertEquals( intentResolverUtils.getConnectionProperty(propertyListconnection, propertyName), propertyconnection); }