@Test
public void checkLibreSensorChangeTest() {

    final String[] testSerials = {"12345678", "12345678", "", "12345678", "12345678", "12345679", "", "12345679", "12345679", "12345680", "12345680", "12345680", "12345680", "12345680"};
    Sensor.shutdownAllSensors();
    JoH.clearCache();
    // everything null
    sensorCheck("all null check ", null, false, true);
    // Testing with null sensor
    for (int i = 0; i < testSerials.length; i++) {
        sensorCheck("Null sensor check " + i, testSerials[i], false, true);
    }
    // Testing for standard failure
    Sensor sensor = Sensor.create(JoH.tsl());
    for (int i = 0; i < 4; i++) {
        sensorCheck("Standard failure check (a) " + i, testSerials[i], false, false);
    }
    for (int i = 5; i < 6; i++) {
        sensorCheck("Standard failure check (b) " + i, testSerials[i], true, true);
    }
    for (int i = 6; i < testSerials.length; i++) {
        sensorCheck("Standard failure check (b) " + i, testSerials[i], false, true);
    }
    // Test sensor create
    final String[] testSerials2 = {"12345678", "12345678", "12345678", "12345678", null, "12345678", "12345678", "12345678", "12345678", "", "12345678", "12345678", "12345678", "12345678"};
    final long ts = JoH.tsl();
    Sensor.create(ts + 1);
    for (int i = 0; i < testSerials2.length; i++) {
        sensorCheck("new sensors (" + i + ") ", testSerials2[i], false, false);
    }
}