public static String safeBeaconCode(Point point) {

        if(point.rawData() instanceof HasBeaconCodes hbc) {

            String beacon = hbc.beaconActual();
            return (beacon == null)
                ? UNKOWN_BEACON_VALUE
                : beacon;
        }

        return UNKOWN_BEACON_VALUE;
    }
@Test
    public void safeBeaconGeneratesDefaultValue() {

        Point p = Point.builder()
            .time(EPOCH)
            .latLong(0.0, 0.0)
            .build();

        assertThat(safeBeaconCode(p), is(UNKOWN_BEACON_VALUE));
    }