@Test
public void testMainClass() throws NoSuchMethodException {

  Class<?> mainClass = Runtime.getMainClass();
  Assert.assertNotNull(mainClass);
  Method method = mainClass.getMethod("main", String[].class);
  Assert.assertNotNull(method);
}