2 * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.mdsal.binding.generator.impl;
10 import java.lang.reflect.Constructor;
11 import java.lang.reflect.InvocationTargetException;
12 import org.junit.Test;
13 import org.opendaylight.mdsal.binding.model.util.FormattingUtils;
15 public class YangTextTemplateTest {
17 @Test(expected = UnsupportedOperationException.class)
18 public void privateConstructTest() throws Throwable {
19 final Constructor<FormattingUtils> constructor = FormattingUtils.class.getDeclaredConstructor();
20 constructor.setAccessible(true);
22 constructor.newInstance();
23 } catch (InvocationTargetException e) {