@Test
public void testAlarmRpcOutputElementWithNoSchemaRegistry() throws Exception {

    long timeInMillis = 1465967097648L;
    Timestamp now = new Timestamp(timeInMillis);
    AlarmParameters parameter = new AlarmParameters(
            "(http://www.example.com/network-manager/managed-devices?revision=2015-07-14)testId", "",
            TEST_RESOURCE, now, AlarmSeverity.CRITICAL,
            "Test");
    Element alarmRpcOutputElement = new AlarmsDocumentTransformer(null, null)
            .getAlarmRpcOutputElement(AlarmTestConstants.NETWORK_MANAGER_NAMESPACE, "1", Arrays.asList(parameter));
    NodeList nodes = alarmRpcOutputElement.getChildNodes();
    for (int i = 0; i < nodes.getLength(); i++) {
        assertFalse(nodes.item(i).getNodeName().contains("baa-network-manager:"));
    }
    alarmRpcOutputElement = new AlarmsDocumentTransformer(null, null).getAlarmRpcOutputElement(AlarmConstants.ALARM_NAMESPACE, "1",
            Arrays.asList(parameter));
    nodes = alarmRpcOutputElement.getChildNodes();
    for (int i = 0; i < nodes.getLength(); i++) {
        assertFalse(nodes.item(i).getNodeName().contains("alarms:"));
    }
}