How to assign a value to a list in java? If Ii assign a following value it shows cannot convert from int[] to List<Integer>
public class GetAddonProductsProcessorTest {
  @Test
  public void AddonProductstest() throws Exception{
    
    //BasicDBList newobj = new BasicDBList();
      
    List<Integer> newobj = {1,2,3};
  
  }
 
     
     
    