@PrepareForTest({ EvaluationContextFactory.class, FactoryFinder.class })

@Test(expected = FactoryException.class)
public void testNegTestEngine2() throws FactoryException {
    // Setup test data
    PowerMockito.mockStatic(FactoryFinder.class);
    PowerMockito.when(FactoryFinder.find(Mockito.any(), Mockito.any(), Mockito.any())).thenReturn(null);
    // Negative test factory
    final OnapPdpEngineFactory factory = new OnapPdpEngineFactory();
    final Properties properties = new Properties();
    factory.newEngine(properties);
    fail("Expecting an exception.");
}