Code example for Constructor

Methods: newInstance, setAccessible

0
	ClientHelper clientHelper;
	 
	@Test 
	public void init() throws SecurityException, NoSuchMethodException, IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException { 
		Constructor<ClientHelper> reflected = ClientHelper.class.getDeclaredConstructor();
		reflected.setAccessible(true);
		ClientHelper initialize = reflected.newInstance();
	} 
	 
	@Test 
	public void testConfigureClient(){ 
		System.out.println("configureClient....");
		ClientConfig config=clientHelper.configureClient();
	} 
	@Test 
	public void testCreateClient(){ 
		System.out.println("createClient....");
		Client client=clientHelper.createClient();
	} 
 
}