Remove explicit UOE throws
[mdsal.git] / binding / mdsal-binding-spec-util / src / test / java / org / opendaylight / mdsal / binding / spec / util / DataObjectReadingUtilTest.java
index 5289a077f9329cf532e761e98ee77b36d6de1e8c..9832232364fc46a523bfd130a94d62031259c045 100644 (file)
@@ -7,7 +7,6 @@
  */
 package org.opendaylight.mdsal.binding.spec.util;
 
-import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertTrue;
 import static org.mockito.Mockito.doReturn;
 import static org.mockito.Mockito.mock;
@@ -17,8 +16,6 @@ import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.UnmodifiableIterator;
-import java.lang.reflect.Constructor;
-import java.lang.reflect.InvocationTargetException;
 import java.util.Map;
 import java.util.Map.Entry;
 import org.junit.Before;
@@ -98,17 +95,4 @@ public class DataObjectReadingUtilTest {
     public void testReadDataWithTwoParams() {
         readData(mockedDataObject, DataObject.class);
     }
-
-    @Test(expected = UnsupportedOperationException.class)
-    @SuppressWarnings({ "checkstyle:illegalThrows", "checkstyle:avoidHidingCauseException" })
-    public void testPrivateConstructor() throws Throwable {
-        assertFalse(DataObjectReadingUtil.class.getDeclaredConstructor().isAccessible());
-        final Constructor<?> constructor = DataObjectReadingUtil.class.getDeclaredConstructor();
-        constructor.setAccessible(true);
-        try {
-            constructor.newInstance();
-        } catch (InvocationTargetException e) {
-            throw e.getCause();
-        }
-    }
 }
\ No newline at end of file