@Test
public void testAgentConfigInvalidEnabled() throws Exception {

  temporarySystemProperties.set(Configuration.Property.ENABLED.getQualifiedName()).to("ja");
  Agent.initAgent(null, logger);
  verify(logger).error(argThat(is("JavaMemoryAssistant cannot start")),
      argThat(allOf(isA(IllegalArgumentException.class),
          hasMessageThat(is("The value 'ja' is invalid for the 'jma.enabled' property: "
              + "'ja' is not a valid boolean")))));
  verifyNoMoreInteractions(logger);
}